yoohoo! hot sauce please
10:27, 7 September 2026 (UTC)
Template:Taro/taroeffect.css: Difference between revisions
From 2swagg wiki
Jump to navigationJump to search
Created page with ".content { position: relative; } .effect h2 { color: #FFFFFF; font-size: 8em; position: absolute; transform: translate(-50%, -50%); } .effect { color: transparent; } .effect { color: #008CFF; text-shadow: 0 0 8px #00FF66; animation: taroanimate 4s ease-in-out infinite; } @keyframes taroanimate { 0%, 100% { clip-path: polygon( 0% 5%, 16% 10%, 33% 5%, 54% 9%, 70% 7%, 84% 6.2%, 100% 7%, 100% 100%, 0% 100% ); } 50% {..." |
No edit summary |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 3: | Line 3: | ||
} | } | ||
. | /* ---------- Layout: triangle behind the box ---------- */ | ||
.taro-wrap { | |||
position: relative; | |||
width: 440px; | |||
max-width: 100%; | |||
margin: 5em auto 1.5em; /* room for the apex above the box */ | |||
} | |||
.taro-triangle { | |||
position: absolute; | position: absolute; | ||
z-index: 0; | |||
left: 77px; /* centers the triangle on the 440px box */ | |||
bottom: -32px; /* puts the triangle's base just under the box */ | |||
width: 297px; | |||
height: 257px; /* keep width ÷ height at about 1.155 */ | |||
} | |||
.taro-triangle img { | |||
width: 100%; | |||
height: 100%; | |||
display: block; | |||
animation: taro-triangle-pulse 4s ease-in-out infinite; | |||
} | } | ||
. | .taro-glow { | ||
position: relative; | |||
z-index: 1; | |||
animation: taro-glow-pulse 4s ease-in-out infinite; | |||
} | } | ||
/* ---------- The box itself ---------- */ | |||
.effect { | .effect { | ||
color: # | width: 100%; | ||
margin: 0; | |||
color: #fff; | |||
background: linear-gradient(135deg, #0066FF, #00008B); | |||
font-size: 95%; | |||
text-align: center; | |||
padding: .5em; | |||
overflow: hidden; | |||
border: 2px solid #00FF66; | |||
border-radius: 12px; | |||
box-shadow: inset 0 0 12px #003300; | |||
text-shadow: 0 0 8px #00FF66; | text-shadow: 0 0 8px #00FF66; | ||
animation: taroanimate 4s ease-in-out infinite; | animation: taroanimate 4s ease-in-out infinite, | ||
taro-text-pulse 4s ease-in-out infinite; | |||
} | } | ||
/* ---------- Animations ---------- */ | |||
@keyframes taroanimate { | @keyframes taroanimate { | ||
0%, 100% { | 0%, 100% { | ||
clip-path: polygon( | clip-path: polygon(0% 5%, 16% 10%, 33% 5%, 54% 9%, 70% 7%, 84% 6.2%, 100% 7%, 100% 100%, 0% 100%); | ||
} | |||
50% { | |||
clip-path: polygon(0% 8%, 16% 7%, 34% 11.6%, 51% 11.2%, 67% 12%, 84% 12.5%, 100% 10.6%, 100% 100%, 0% 100%); | |||
); | } | ||
} | |||
@keyframes taro-glow-pulse { | |||
0%, 100% { | |||
filter: drop-shadow(0 0 4px #00FF66) drop-shadow(0 0 12px #00CC55); | |||
} | |||
50% { | |||
filter: drop-shadow(0 0 8px #00FF88) drop-shadow(0 0 22px #00FF66) drop-shadow(0 0 44px rgba(0,255,102,.55)); | |||
} | } | ||
} | |||
@keyframes taro-text-pulse { | |||
0%, 100% { text-shadow: 0 0 6px #00FF66; } | |||
50% { text-shadow: 0 0 10px #00FF88, 0 0 22px #00FF66; } | |||
} | |||
@keyframes taro-triangle-pulse { | |||
0%, 100% { | |||
filter: drop-shadow(0 0 10px rgba(255,215,0,.5)) brightness(1); | |||
transform: scale(1); | |||
} | |||
50% { | 50% { | ||
filter: drop-shadow(0 0 28px rgba(255,215,0,.9)) brightness(1.12); | |||
transform: scale(1.015); | |||
); | |||
} | } | ||
} | |||
/* ---------- Small screens / accessibility ---------- */ | |||
@media (max-width: 600px) { | |||
.effect { font-size: 80%; } | |||
} | |||
@media (prefers-reduced-motion: reduce) { | |||
.taro-triangle img, .taro-glow, .effect { animation: none; } | |||
} | } | ||
Latest revision as of 19:09, 11 October 2026
.content {
position: relative;
}
/* ---------- Layout: triangle behind the box ---------- */
.taro-wrap {
position: relative;
width: 440px;
max-width: 100%;
margin: 5em auto 1.5em; /* room for the apex above the box */
}
.taro-triangle {
position: absolute;
z-index: 0;
left: 77px; /* centers the triangle on the 440px box */
bottom: -32px; /* puts the triangle's base just under the box */
width: 297px;
height: 257px; /* keep width ÷ height at about 1.155 */
}
.taro-triangle img {
width: 100%;
height: 100%;
display: block;
animation: taro-triangle-pulse 4s ease-in-out infinite;
}
.taro-glow {
position: relative;
z-index: 1;
animation: taro-glow-pulse 4s ease-in-out infinite;
}
/* ---------- The box itself ---------- */
.effect {
width: 100%;
margin: 0;
color: #fff;
background: linear-gradient(135deg, #0066FF, #00008B);
font-size: 95%;
text-align: center;
padding: .5em;
overflow: hidden;
border: 2px solid #00FF66;
border-radius: 12px;
box-shadow: inset 0 0 12px #003300;
text-shadow: 0 0 8px #00FF66;
animation: taroanimate 4s ease-in-out infinite,
taro-text-pulse 4s ease-in-out infinite;
}
/* ---------- Animations ---------- */
@keyframes taroanimate {
0%, 100% {
clip-path: polygon(0% 5%, 16% 10%, 33% 5%, 54% 9%, 70% 7%, 84% 6.2%, 100% 7%, 100% 100%, 0% 100%);
}
50% {
clip-path: polygon(0% 8%, 16% 7%, 34% 11.6%, 51% 11.2%, 67% 12%, 84% 12.5%, 100% 10.6%, 100% 100%, 0% 100%);
}
}
@keyframes taro-glow-pulse {
0%, 100% {
filter: drop-shadow(0 0 4px #00FF66) drop-shadow(0 0 12px #00CC55);
}
50% {
filter: drop-shadow(0 0 8px #00FF88) drop-shadow(0 0 22px #00FF66) drop-shadow(0 0 44px rgba(0,255,102,.55));
}
}
@keyframes taro-text-pulse {
0%, 100% { text-shadow: 0 0 6px #00FF66; }
50% { text-shadow: 0 0 10px #00FF88, 0 0 22px #00FF66; }
}
@keyframes taro-triangle-pulse {
0%, 100% {
filter: drop-shadow(0 0 10px rgba(255,215,0,.5)) brightness(1);
transform: scale(1);
}
50% {
filter: drop-shadow(0 0 28px rgba(255,215,0,.9)) brightness(1.12);
transform: scale(1.015);
}
}
/* ---------- Small screens / accessibility ---------- */
@media (max-width: 600px) {
.effect { font-size: 80%; }
}
@media (prefers-reduced-motion: reduce) {
.taro-triangle img, .taro-glow, .effect { animation: none; }
}