In this video, we will create an awesome text effect CSS only. This video on how to clip image on text using -webkit-background-clip. For a preview click on Demo If you want to get the complete source code in a zip file then click the "Fork me on GitHub" button below that will redirect you to my GitHub account where you found all my source code files. Copy Code(select code part and copy using "CTRL + C" or using R Click to mouse)🡇 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 >How to clip image on text</ title > <!-- style.css --> < link rel = "stylesheet" href = "style.css" > </ head > < body >
In this video, we will create a preloader animation for a website using HTML & CSS only.
If you want to get the complete source code in a zip file then click the "Fork me on GitHub" button below that will redirect you to my GitHub account where you found all my source code files.
Copy Code(select code part and copy using "CTRL + C" or using R Click to mouse)🡇
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>Preloader</title>
<!-- style css -->
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- balls -->
<div class="balls"></div>
<div class="balls"></div>
<div class="balls"></div>
<!-- balls -->
</body>
</html>
CSS
* {
margin: 0;
padding: 0;
}
body {
display: flex;
justify-content: center;
align-items: center;
background-color: #1a084d;
min-height: 100vh;
}
.balls {
width: 70px;
height: 70px;
border-radius: 50%;
background-color: #fff;
position: absolute;
bottom: 40%;
left: 50%;
transform: translate(-50%, -100%);
animation: bounce 2s infinite cubic-bezier(1, 0, 0, 1);
}
.balls:nth-child(2) {
animation-delay: 0.2s;
}
.balls:nth-child(3) {
animation-delay: 0.4s;
}
/* animation */
@keyframes bounce {
0% {
height: 70px;
}
50% {
height: 1px;
border-radius: 10px;
}
100% {
height: 70px;
}
}
Fork me on GitHub
Subscribe to me on YouTube
Like & Comment on my video on YouTube & press the bell icon to get notification first.
Follow me on Instagram
Comment down any query if you have.
Comments
Post a Comment
If you have any doubts please let me know.