<div class="css-scroll-down">
<div class="single-scroll-down-animation animation1">
<!-- animation-1 -->
<h4>scroll effect-1</h4>
<!-- copy from here -->
<div class="scroll-down1">
<i class="fa fa-angle-down"></i>
</div>
</div>
<div class="single-scroll-down-animation animation2">
<!-- animation-2 -->
<h4>scroll effect-2</h4>
<!-- copy from here -->
<div class="scroll-down2"></div>
</div>
<div class="single-scroll-down-animation animation3">
<!-- animation-3 -->
<h4>scroll effect-3</h4>
<!-- copy from here -->
<div class="scroll-down3">
<i class="fa fa-angle-down"></i>
</div>
</div>
<div class="single-scroll-down-animation animation4">
<!-- animation-4 -->
<h4>scroll effect-4</h4>
<!-- copy from here -->
<div class="scroll-down4"></div>
</div>
<div class="single-scroll-down-animation animation5">
<!-- animation-5 -->
<h4>scroll effect-5</h4>
<!-- copy from here -->
<div class="scroll-down5"></div>
</div>
</div>
@import url("https://fonts.googleapis.com/css?family=Montserrat:400,600,700,800,900");
* {
margin: 0px;
padding: 0px;
box-sizing: border-box;
}
*:focus {
box-shadow: none;
border: none;
outline: none;
}
body,
html {
height: 100%;
width: 100%;
}
body,
p {
font: 400 18px/30px "Poppins", sans-serif;
color: #5d6483;
font-smoothing: antialiased;
osx-font-smoothing: grayscale;
}
a {
text-decoration: none;
color: #4154fe;
}
h1,
h2,
h3,
h4,
h5,
h6,
p,
a {
margin: 0px;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-weight: normal;
font-variant-ligatures: common-ligatures;
font-variant-ligatures: common-ligatures;
}
a:hover,
a:focus,
input:focus,
button:focus,
a:active {
text-decoration: none;
outline: none;
outline-offset: 0px;
box-shadow: none;
}
ul {
list-style: none;
margin: 0;
padding: 0;
}
input,
textarea,
select {
border: 1px solid #d1d1d1;
font-size: 14px;
padding: 8px 15px;
width: 100%;
resize: none;
}
/*-----end default style (you can remove this code)------*/
//Css Scroll Down Animation - Pure Css3 Effect
.css-scroll-down{
display: flex;
flex-flow: row;
align-items: flex-start;
padding: 50px 30px;
.single-scroll-down-animation{
margin-right: 20px;
width: calc(25% - 20px);
margin-bottom: 50px;
h4 {
text-transform: uppercase;
font-weight: 700;
font-size: 20px;
text-align: center;
margin-bottom: 30px;
}
}
}
//----scroll animation-1------
.scroll-down1{
width: 50px;
height: 50px;
border-radius: 100%;
border: 2px solid #00b4ff;
font-size: 30px;
overflow: hidden;
cursor: pointer;
display: flex;
flex-flow: column;
align-items: center;
justify-content: center;
margin: 0 auto; //---you can romove this line---
i{
color: #00b4ff;
animation: scrollDown1 1.5s ease infinite;
}
}
@keyframes scrollDown1{
0%{
transform: translateY(-15px);
opacity: 0;
}
50%{
transform: translateY(0px);
opacity: 1;
}
100%{
transform: translateY(15px);
opacity: 0;
}
}
//---------scroll animation-2---------
.scroll-down2{
width: 30px;
height: 50px;
border: 2px solid #00b4ff;
border-radius: 50px;
cursor: pointer;
position: relative;
overflow: hidden;
margin: 0 auto; //---you can romove this line---
&:before{
content: "";
position: absolute;
left: 50%;
top: 20px;
width: 6px;
height: 6px;
border-radius: 100%;
transform: translateX(-50%);
background: #00b0ff;
animation: scrollDown2 1.5s ease infinite;
}
&:after{
content: "";
position: absolute;
left: 50%;
top: 5px;
width: 6px;
height: 15px;
border-radius: 3px;
transform: translateX(-50%);
background: #00b0ff;
}
}
@keyframes scrollDown2{
0%{
transform: translate(-50%, 0px);
opacity: 0;
}
50%{
transform: translate(-50%, 8px);
opacity: 1;
}
100%{
transform: translate(-50%, 16px);
opacity: 0;
}
}
//---------scroll animation-3---------
.scroll-down3{
width: 50px;
height: 50px;
border-radius: 100%;
border: 2px solid #00b4ff;
font-size: 30px;
overflow: hidden;
cursor: pointer;
display: flex;
flex-flow: column;
align-items: center;
justify-content: center;
margin: 0 auto; //---you can romove this line---
i{
color: #00b4ff;
animation: scrollDown3 2s ease infinite;
}
}
@keyframes scrollDown3{
0%{
transform: translateY(-15px);
opacity: 0;
}
45%{
transform: translateY(0px);
opacity: 1;
}
65%{
transform: translateY(-5px);
opacity: 1;
}
100%{
transform: translateY(15px);
opacity: 0;
}
}
//---------scroll animation-4---------
.scroll-down4{
width: 3px;
height: 80px;
background: #00b0ff;
animation: scrollDown4 2s ease infinite;
margin: 0 auto; //---you can romove this line---
}
@keyframes scrollDown4{
0%{
transform-origin: top;
transform: scaleY(0);
}
45%{
transform-origin: top;
transform: scaleY(1);
}
55%{
transform-origin: bottom;
transform: scaleY(1);
}
100%{
transform-origin: bottom;
transform: scaleY(0);
}
}
//---------scroll animation-5---------
.scroll-down5{
width: 2px;
height: 110px;
position: relative;
background: transparent;
animation: scrollDown5 1.5s ease infinite;
border-radius: 100%;
margin: 0 auto; //---you can romove this line---
&:before{
content: "";
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
background: linear-gradient(transparent, #00b0ff, transparent);
}
}
@keyframes scrollDown5{
0%{
transform-origin: top;
transform: scaleY(0);
}
45%{
transform-origin: top;
transform: scaleY(1);
}
55%{
transform-origin: bottom;
transform: scaleY(1);
}
100%{
transform-origin: bottom;
transform: scaleY(0);
}
}
View Compiled
This Pen doesn't use any external JavaScript resources.