<div class="tiktok-viral-badge-bounce">
<div class="tiktok-viral-box">
<img src="https://cdn-icons-png.flaticon.com/512/3046/3046121.png" alt="TikTok" style="width: 18px; height: 18px; vertical-align: middle; m argin-right: 8px;">Viral on TikTok · 4.5M Views</span>
</div>
</div>
<style>
/* Outer wrapper: TikTok gradient border + bounce animation */
.tiktok-viral-badge-bounce {
display: inline-block;
padding: 6px;
border-radius: 9999px;
background: linear-gradient(90deg, #25f4ee, #fe2c55);
animation: tiktokBounceFast 0.5s infinite ease-in-out;
will-change: transform;
}
/* Inner box: off-white background, shadow, oval shape */
.tiktok-viral-box {
display: flex;
align-items: center;
gap: 12px;
padding: 14px 36px;
border-radius: 9999px;
background-color: #fefefe; /* Off-white */
color: #000000;
font-family: 'Arial', sans-serif;
font-weight: 600;
font-size: 15px;
white-space: nowrap;
box-shadow: 0 6px 18px rgba(254, 44, 85, 0.4), 0 0 6px rgba(37, 244, 238, 0.3);
}
/* TikTok logo size */
.tiktok-icon {
width: 26px;
height: 26px;
flex-shrink: 0;
}
/* Fast bounce animation keyframes */
@keyframes tiktokBounceFast {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-8px); }
}
</style>
How Many People Watching Code
<div class="viewer-count">
👁️<span id="viewerNumber"> </span> people watching this product now!
</div>
<style>
@keyframes changeViewerNumber {
0% {
content: "95";
}
10% {
content: "85";
}
20% {
content: "90";
}
25% {
content: "92";
}
35% {
content: "102";
}
50% {
content: "109";
}
60% {
content: "81";
}
75% {
content: "89";
}
75% {
content: "97";
}
100% {
content: "110";
}
}
.viewer-count span#viewerNumber::after {
content: "X";
animation: changeViewerNumber 10s infinite;
}
</style>