Use CSS and Bootstrap icons to create an up and down jumping indicator arrow animation effect

Use CSS and Bootstrap icons to create an up and down jumping indicator arrow animation effect

Sometimes the page is very long and needs an arrow to tell the user that there is more content below. This can be achieved using pure CSS.

HTML: Add a link that modifies the anchor point so that it slides to a specified position when clicked. Here, a down arrow from the Bootstrap 3.x version is used as the icon.

<a href="#" class="scroll-down">
  <span> <i class="glyphicon glyphicon-chevron-down"></i> </span>
</a>

CSS: Adding animation effects

/*Slide down animation effect*/
@-webkit-keyframes drop {
  0% { top:0px; opacity: 0;}
  30% { top:10px; opacity: 1;}
  100% { top:25px; opacity: 0;}
}
@keyframes drop {
  0% { top:0px; opacity: 0;}
  30% { top:10px; opacity: 1;}
  100% { top:25px; opacity: 0;}
}
/*Apply animation and add button effects*/
.scroll-down {
    border: 2px solid #bbb;
    border-radius: 50%;
    margin: 0 auto;
    height: 50px;
    width: 50px;
    display: block;
    text-align: center;
    z-index: 10;
    -webkit-transition: all 0.125s ease-in-out 0s;
    -moz-transition: all 0.125s ease-in-out 0s;
    -ms-transition: all 0.125s ease-in-out 0s;
    -o-transition: all 0.125s ease-in-out 0s;
    transition: all 0.125s ease-in-out 0s;
}
.scroll-down span {
    position: relative;
    color: #bbb;
    font-size: 24px;
    -webkit-animation-name: drop;
    -webkit-animation-duration: 1s;
    -webkit-animation-timing-function: linear;
    -webkit-animation-delay: 0s;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-play-state: running;
    animation-name: drop;
    animation-duration: 1s;
    animation-timing-function: linear;
    animation-delay: 0s;
    animation-iteration-count: infinite;
    animation-play-state: running;
}

Summarize

The above is what I introduced to you about using CSS and Bootstrap icons to create an up and down jumping indicator arrow animation effect. I hope it will be helpful to you. If you have any questions, please leave me a message and I will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!

<<:  Answers to several high-frequency MySQL interview questions

>>:  HTML Web Page List Tags Learning Tutorial

Recommend

MySQL uses inet_aton and inet_ntoa to process IP address data

This article will introduce how to save IP addres...

How to install babel using npm in vscode

Preface The previous article introduced the insta...

Linux unlink function and how to delete files

1. unlink function For hard links, unlink is used...

How to install docker on Linux system and log in to docker container through ssh

Note: I use Centos to install docker Step 1: Inst...

MySQL service and database management

Table of contents 1. Start and stop service instr...

How to install MySQL 8.0 database on M1 chip (picture and text)

1. Download First of all, I would like to recomme...

MySQL 5.7.17 installation and configuration tutorial under CentOS6.9

CentOS6.9 installs Mysql5.7 for your reference, t...

How to migrate mysql storage location to a new disk

1. Prepare a new disk and format it with the same...

MySQL 5.7.23 installation and configuration graphic tutorial

This article records the detailed installation pr...

A brief discussion of 12 classic problems in Angular

Table of contents 1. Please explain what are the ...

HTML+CSS makes div tag add delete icon in the upper right corner sample code

1. Requirements description Display the delete ic...

Summary of the characteristics of SQL mode in MySQL

Preface The SQL mode affects the SQL syntax that ...

Vue achieves seamless carousel effect

This article shares the specific code of Vue to a...

A practical record of troubleshooting a surge in Redis connections in Docker

On Saturday, the redis server on the production s...