How to make this type of cool text hover effect in CSS
/*CSS*/
*,*::before,*::after{
padding: 0;
margin: 0;
box-sizing: border-box;
}
body{
font-family: sans-serif;
background: radial-gradient(#D9D9D9, #FFF);
width: 100%;
min-height: 100vh;
display: grid;
place-items: center;
}
.container{
width: 540px;
}
.container span{
font-size: 5rem;
font-weight: 900;
color: #FFF;
text-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
display: inline-block;
transition: transform 0.4s ease-in-out;
}
.container:hover span:nth-child(1){
transform: translateY(20px) rotate(20deg);
}
.container:hover span:nth-child(2){
transform: translateY(-20px) rotate(-10deg);
}
.container:hover span:nth-child(3){
transform: translateY(20px) rotate(-20deg);
}
.container:hover span:nth-child(4){
transform: translateY(-20px) rotate(12deg);
}
.container:hover span:nth-child(5){
transform: translateY(20px) rotate(-15deg);
}
.container:hover span:nth-child(6){
transform: translateY(-20px) rotate(5deg);
}
.container:hover span:nth-child(7){
transform: translateY(20px) rotate(-5deg);
}
Watch video Awesome Text Hover Effect part 9 online, duration hours minute second in high quality that is uploaded to the channel Masters In Web Design 21 January 2022. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 12 times and liked it 2 visitors.