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_regionshtml 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.
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_quizhtml 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.
To get the background to our attention seeking โmarkโ tag โglowing textโ application please read โฆ
- HTML5 Mark Tag Div Contenteditable Tutorial โฆ along with โฆ
- Glowing Text Validation Primer Tutorialโs thread of blog postings below inspired by the CSS brilliance of W3Schoolโs glowing text idea
โฆ 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 markithtmlโ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.
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 โฆ
- thechanged html5_form_constraint_validation
htmlโs live
run as featured on HTML5 Form API Validation Revisit Tutorial
- thechanged oninvalid
html live
run as featured on HTML Oninvalid Event Form Validation Primer Tutorial
Previous relevant Shooting Star Game Primer Tutorial is shown below.
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_gamehtml 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.