The content on this website, including videos and code examples, is for educational purposes only. All demonstrations and designs are fictional and created to illustrate coding techniques. Any resemblance to existing websites or brands is purely coincidental.
The creators and administrators of this website do not claim ownership or affiliation with any existing websites or companies. Users are encouraged to use the information responsibly for learning purposes. Liability for any misuse of the content provided is not accepted.
Below is the html code for this video.
index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Revealing Animations</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<div class="all-anim-sticker sticker">
<div class="circle-wrapper reveal">
<div class="circle">Oh you Find me</div>
</div>
<div class="all-anim-sticker sticky">
<div class="circle-wrapper front all-anim-sticker">
<div class="all-anim-sticker circle"></div>
</div>
</div>
<h4>Hover to Peel</h4>
<div class="all-anim-sticker sticky">
<div class="circle-wrapper back all-anim-sticker">
<div class="all-anim-sticker circle"></div>
</div>
</div>
</div>
<div class="alphabet-container">
<span class="letter" data-letter="A">A</span>
<span class="letter" data-letter="B">B</span>
<span class="letter" data-letter="C">C</span>
<span class="letter" data-letter="D">D</span>
<span class="letter" data-letter="E">E</span>
<span class="letter" data-letter="F">F</span>
<span class="letter" data-letter="G">G</span>
<span class="letter" data-letter="H">H</span>
<span class="letter" data-letter="I">I</span>
<span class="letter" data-letter="J">J</span>
<span class="letter" data-letter="K">K</span>
<span class="letter" data-letter="L">L</span>
<span class="letter" data-letter="M">M</span>
<span class="letter" data-letter="N">N</span>
<span class="letter" data-letter="O">O</span>
<span class="letter" data-letter="P">P</span>
<span class="letter" data-letter="Q">Q</span>
<span class="letter" data-letter="R">R</span>
<span class="letter" data-letter="S">S</span>
<span class="letter" data-letter="T">T</span>
<span class="letter" data-letter="U">U</span>
<span class="letter" data-letter="V">V</span>
<span class="letter" data-letter="W">W</span>
<span class="letter" data-letter="X">X</span>
<span class="letter" data-letter="Y">Y</span>
<span class="letter" data-letter="Z">Z</span>
</div>
</div>
</body>
</html>
Below is the css code for this video.
style.css
*, *::before, *::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
height: 100vh;
width: 100%;
font-family: Arial, Helvetica, sans-serif;
background-color: #95dbe5;
}
.container {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 100%;
}
.all-anim-sticker {
transition: all 0.75s ease-in-out;
}
.sticker {
position: relative;
height: 180px;
width: 180px;
margin: 0 auto;
backface-visibility: hidden;
}
.sticker .reveal .circle {
background: #932d5f;
color: #ffffff;
text-align: center;
line-height: 140px;
box-shadow: 0 1px 0 #00000040;
cursor: pointer;
}
.sticker .circle-wrapper {
position: absolute;
top: 0;
left: 0;
height: 180px;
width: 180px;
overflow: hidden;
}
.sticker .circle {
position: absolute;
height: 140px;
width: 140px;
margin: 20px;
border-radius: 50%;
}
.sticker .sticky {
position: absolute;
top: 0;
left: 0;
height: 180px;
width: 180px;
transform: rotate(45deg);
}
.sticker:hover .sticky {
transform: rotate(10deg);
}
.sticker .front {
top: auto;
bottom: 0;
height: 150px;
box-shadow: 0 -140px 20px -140px #00000040;
}
.sticker:hover .front {
height: 70px;
box-shadow: 0 -60px 10px -60px #00000040;
}
.sticker .front .circle {
background: #ed939d;
background-image: linear-gradient(to top, #ed939d00 75%, #7d575e 95%);
margin-top: -10px;
}
.sticker:hover .front .circle {
background-color: #ed939d;
background-position: 0 100px;
margin-top: -90px;
}
.sticker h4 {
position: absolute;
height: 140px;
width: 180px;
font-weight: 200;
line-height: 180px;
text-align: center;
transition: opacity 50ms linear 400ms;
}
.sticker:hover h4 {
opacity: 0;
transition: opacity 50ms linear 300ms;
}
.sticker .back {
top: 30px;
height: 10px;
}
.sticker:hover .back {
top: 110px;
height: 90px;
}
.sticker .back .circle {
background-color: #ed939d;
background-image: linear-gradient(to bottom, #ed939d00, #ffffffbf);
margin-top: -130px;
}
.sticker:hover .back .circle {
margin-top: -50px;
}
.alphabet-container {
width: 90%;
margin: 0 auto;
text-align: center;
}
.letter {
position: relative;
display: inline-block;
color: #888fc7;
margin: 4px;
font-size: 100px;
font-weight: 900;
perspective: 400px;
transform-style: preserve-3d;
z-index: 1;
}
.letter, .letter::before, .letter::after {
transition: all 0.25s ease-in-out;
}
.letter::before, .letter::after {
content: attr(data-letter);
position: absolute;
top: 0;
left: 0;
transform-origin: top left;
}
.letter::before {
color: #95dbe5;
transform: rotateX(0deg) rotateY(-15deg) rotateZ(0deg);
text-shadow: -1px 0 0 #ffffffbf, 1px 0 1px #000000bf;
z-index: 3;
}
.letter::after {
color: #00000040;
transform: scale(1.075, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 1deg);
z-index: 2;
}
.letter:hover::before {
color: #95dbe5;
transform: rotateX(0deg) rotateY(-40deg) rotateZ(0deg);
}
.letter:hover::after {
transform: scale(1.075, 1) rotateX(0deg) rotateY(40deg) rotateZ(0deg) skew(0deg, 22deg);
}
Thanks for visiting