h1 {
font-size: 3em;
margin-top: 100px;
animation: goyang 2s infinite;
}
p {
font-size: 1.5em;
margin: 20px;
}
.heart {
font-size: 50px;
animation: degdeg 1.2s infinite;
}
@keyframes degdeg {
0% { transform: scale(1); }
50% { transform: scale(1.3); }
100% { transform: scale(1); }
}
@keyframes goyang {
0%, 100% { transform: rotate(0deg); }
25% { transform: rotate(1deg); }
75% { transform: rotate(-1deg); }
}
.bubble {
position: absolute;
font-size: 24px;
animation: floatUp 6s infinite;
color: #ff99c8;
}
@keyframes floatUp {
0% {
bottom: -50px;
left: calc(100% * var(--pos));
opacity: 1;
}
100% {
bottom: 100%;
left: calc(100% * var(--pos) + 50px);
opacity: 0;
}
}
.footer {
position: absolute;
bottom: 20px;
width: 100%;
font-size: 1em;
color: #a64d79;
}
π
Aku punya pengumuman penting nih...
AKU CINTA KAMU BANGETTT hehehehehehe πππ
Semanhattt belajarrr di smasaaa yaaa sayaaangg ! π±πΆοΈ
π
Dari pacarmu yang cakepp ga adaa obatt nihh β€οΈ
<script>
const emojis = ['π','π','π','π','π','π','π'];
for (let i = 0; i < 20; i++) {
const b = document.createElement('div');
b.classList.add('bubble');
b.innerText = emojis[Math.floor(Math.random() * emojis.length)];
b.style.setProperty('--pos', Math.random());
b.style.left = Math.random() * 100 + 'vw';
b.style.animationDelay = Math.random() * 5 + 's';
document.body.appendChild(b);
}
</script>