Image Map with Overlay SVG Glowing Polygon Tutorial
โœ‚๐Ÿƒ๐Ÿพโ€โ™€๏ธ๐Ÿƒ๐Ÿผโ€โ™‚๏ธ
๐Ÿ“–

Image Map with Overlay SVG Glowing Polygon Tutorial

Image Map with Overlay SVG Glowing Polygon Tutorial

In the โ€œglowingโ€ CSS styling work weโ€™ve been talking about recently, as with yesterdayโ€™s Multiple Choice Quiz with Glowing Box Tutorial โ€œGlowing Boxโ€, today we have for you โ€ฆ

  • HTML image map element โ€ฆ with โ€ฆ
  • area shape=โ€polyโ€ (polygon) elements (that represent approximate coverage for Australian Indigenous Language areas in Australia) โ€ฆ overlaid by โ€ฆ
  • SVG polygon elements (that come into play when an area element is clicked/touched โ€ฆ all old news you can read from Australian Indigenous Language SVG Overlay Tutorial โ€ฆ but new today we add โ€ฆ
  • โ€œGlowing Polygonโ€ animated drop shadow (and thanks to this great link for help here) for that SVG polygon as per the new CSS styling โ€ฆ


    <style>



    /* Thanks to https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_glowing_text */



    svg {

    font-size: 16px;

    color: #fff;

    text-align: center;

    -webkit-animation: glow 1s ease-in-out infinite alternate;

    -moz-animation: glow 1s ease-in-out infinite alternate;

    animation: glow 1s ease-in-out infinite alternate;

    color: black;

    -webkit-filter: drop-shadow(0 0 5px red);

    filter: drop-shadow(0 0 5px red);


    }



    @-webkit-keyframes glow {

    0% { -webkit-filter: drop-shadow(0 0 5px red); filter: drop-shadow(0 0 5px red); }

    100% { -webkit-filter: drop-shadow(0 0 8px blue); filter: drop-shadow(0 0 8px blue); }


    }

    </style>

โ€ฆ an effect quite eye-catching as you click/touch in a language region to find out more.

Perhaps you want to use this changedHTML and Javascript and CSS aboriginal_language_regionsโšซhtml image map liveโœ‚run link to see how this plays out in actuality, or to explore a little into the oldest continuous culture on this planet?



Previous relevant Multiple Choice Quiz with Glowing Box Tutorial is shown below.

Multiple Choice Quiz with Glowing Box Tutorial

Multiple Choice Quiz with Glowing Box Tutorial

Weโ€™re going from โ€œGlowing Textโ€ ideas below, with HTML5 Mark Tag with Glowing Text Tutorial, to โ€œGlowing Boxโ€ ideas, starting today, that we apply in the context of a Multiple Choice Quiz.

As far as online quizzes go, donโ€™t know if you agree, but we think our best chance to remember our learning is, particularly regarding incorrect (quiz) answers, to either โ€ฆ

  • trap the user with a correct answer with a Javascript popup (eg. alert) window, awaiting the press of a button โ€ฆ and/or โ€ฆ
  • really โ€œin your faceโ€ highlighting of the correct answer (particularly in the case of a multiple choice scenario) with attention grabbing (CSS) styling

โ€ฆ and so, for the latter, we queue the new โ€œGlowing Boxโ€ (CSS) styling, which (to us) is the same as the (brilliant CSS W3schools glowing text idea) โ€œGlowing Textโ€ styling except where you had โ€œtext-shadowโ€ in the keyframes section (for โ€œGlowing Textโ€) we use โ€œbox-shadowโ€ in that same keyframes section (for โ€œGlowing Boxโ€). We add this onto our previous efforts with HTML/Javascript Multiple Choice Quiz Reveal Tutorial.

With thechanged multiple_choice_quizโšซhtml liveโœ‚run link, you can try out the new CSS โ€œGlowing Boxโ€, as per โ€ฆ



<style>



/* Thanks to https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_glowing_text */



.glow {

font-size: 16px;

color: #fff;

text-align: center;

-webkit-animation: glow 1s ease-in-out infinite alternate;

-moz-animation: glow 1s ease-in-out infinite alternate;

animation: glow 1s ease-in-out infinite alternate;

color: black;

}



@-webkit-keyframes glow {

from {

box-shadow: 0 0 3px #fff, 0 0 5px #fff, 0 0 37px #e60073, 0 0 9px #e60073, 0 0 11px #e60073, 0 0 13px #e60073, 0 0 15px #e60073;

}



to {

box-shadow: 0 0 24px #fff, 0 0 6px #ff4da6, 0 0 8px #ff4da6, 0 0 10px #ff4da6, 0 0 12px #ff4da6, 0 0 14px #ff4da6, 0 0 16px #ff4da6;

}

}

</style>

โ€ฆ overlaying correct Multiple Choice (set) answers with a very compelling (div โ€œboxโ€ 3D looking) display.


Previous relevant HTML5 Mark Tag with Glowing Text Tutorial is shown below.

HTML5 Mark Tag with Glowing Text Tutorial

HTML5 Mark Tag with Glowing Text Tutorial

To get the background to our attention seeking โ€œmarkโ€ tag โ€œglowing textโ€ application please read โ€ฆ

โ€ฆ todayโ€™s use quite apt for this โ€œmarkโ€ tagโ€™s text highlighting talent. Itโ€™s default highlighting is a strong yellow background colour, but you can apply this โ€œglowing textโ€ CSS class to achieve a more โ€œin your face resultโ€, which you can try (thechanged markitโšซhtmlโ€˜s) liveโœ‚run link โ€ฆ or below โ€ฆ

โ€ฆ yourself, to see what the effect is of โ€œmark highlightingโ€ and โ€œglowing textโ€.


Previous relevant Glowing Text Validation Primer Tutorial is shown below.

Glowing Text Validation Primer Tutorial

Glowing Text Validation Primer Tutorial

Yesterdayโ€™s application of the use of CSS brilliance of W3Schoolโ€™s glowing text idea with Shooting Star Game Primer Tutorial was just one idea regarding the use of glowing text. What about using it with form validation?

Yes, thatโ€™s โ€œa goerโ€ โ€ฆ see, even the pamplettes are nodding. The reason, of course, is that glowing text is a mechanism whereby you can grab the attention of even the most blasรฉ of online users. And especially if the field you are โ€œform validatingโ€ is mission critical, this could be a good ploy.

See how we apply this (by making mistakes filling in the forms) with โ€ฆ


Previous relevant Shooting Star Game Primer Tutorial is shown below.

Shooting Star Game Primer Tutorial

Shooting Star Game Primer Tutorial

Weโ€™ve got one of those pretty simple โ€œclick โ€™em upโ€ games for you today, inspired by the CSS brilliance of W3Schoolโ€™s glowing text idea, thanks.

That set us to thinking of Emojis we could apply (in front of the great background ideas derived from this advice) and looked up Emojipedia (is good for looking up Emoji names or concepts in words) and onto FileFormat Information (is great for HTML Entity determinations for your less complex Emojis) and even Iemoji (is great for HTML Entity determinations for Emojis of all complexities) to determine some components to our game, those being โ€ฆ

  • ๐ŸŒŸ โ€ฆ star
  • โ˜„๏ธ โ€ฆ comet
  • ๐ŸŒ• โ€ฆ moon

โ€ฆ which, in turn, led to thoughts regarding a game โ€ฆ

  • for one player
  • that rewards fast reflexes โ€ฆ and โ€ฆ
  • scores via onclick event logic on each component
  • according to levels of difficulty โ€ฆ and โ€ฆ
  • lessens the score for โ€œblazing awayโ€ clicks (or touches) โ€ฆ for that, if a player score is (made up of) score/goes then โ€œgoesโ€ is incremented by any document.body onclick event during the game

Levels of difficulty โ€ฆ pour quoi? Well, we can change the โ€ฆ

  • Emoji font-size โ€ฆ and/or โ€ฆ
  • Movement potential of emoji (in pixels) in any โ€œsetTimeout(movecomponents, 100);โ€ 1/10th of a second call cycle

Have a go of todayโ€™s shooting_star_gameโšซhtml game if you like, to see this in action.

If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.

This entry was posted in eLearning, Event-Driven Programming, Tutorials and tagged , , , , , , , , , , , , , , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *