CSS 3.0 text hover jump special effects code

CSS 3.0 text hover jump special effects code

Here is a text hovering and jumping effect implemented with CSS 3.0. The effect is as follows:

The following is the code implementation, you are welcome to copy, paste and collect it.

<!DOCTYPE html>
<html lang="en">
 
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>CSS 3.0 text hover and bounce effects</title>
        <style>
            * {
                margin: 0;
                padding: 0;
            }
            body {
                display: flex;
                justify-content: center;
                align-items: center;
                min-height: 100vh;
                background: #000;
            }
 
            .loader {
                position: relative;
            }
 
            .loader span {
                position: relative;
                font-size: 2em;
                color: #fff;
                display: inline-block;
                text-transform:uppercase;
                animation: animate 2s ease-in-out infinite;
                animation-delay: calc(0.1s * var(--i));
                animation-play-state: paused;
            }
 
            .loader:hover span {
                animation-play-state: running;
            }
            @keyframes animate {
 
                0%,
                40%,
                100% {
                    transform: translateY(0);
                }
 
                20% {
                    transform: translateY(-50px);
                }
            }
        </style>
    </head>
 
    <body>
        <div class="loader">
            <span style="--i:1;">A</span>
            <span style="--i:2;">n</span>
            <span style="--i:3;">i</span>
            <span style="--i:4;">m</span>
            <span style="--i:5;">a</span>
            <span style="--i:6;">t</span>
            <span style="--i:7;">i</span>
            <span style="--i:8;">o</span>
            <span style="--i:9;">n</span>
            <span style="--i:10;">_</span>
            <span style="--i:11;">P</span>
            <span style="--i:12;">l</span>
            <span style="--i:13;">a</span>
            <span style="--i:14;">y</span>
            <span style="--i:15;">_</span>
            <span style="--i:16;">S</span>
            <span style="--i:17;">t</span>
            <span style="--i:18;">a</span>
            <span style="--i:19;">t</span>
            <span style="--i:20;">e</span>
            <span style="--i:21;">.</span>
        </div>
    </body>
 
</html>

Summarize

This is the end of this article about CSS 3.0 text hover jump special effects code. For more relevant CSS 3.0 text hover jump content, please search 123WORDPRESS.COM’s previous articles or continue to browse the related articles below. I hope everyone will support 123WORDPRESS.COM in the future!

<<:  Element-ui directly clicks on the cell in the table to edit

>>:  A brief discussion on how to solve the depends_on order problem in Docker-compose

Recommend

Examples of optimistic locking and pessimistic locking in MySQL

The task of concurrency control in a database man...

mysql5.7.19 winx64 decompressed version installation and configuration tutorial

Recorded the installation tutorial of mysql 5.7.1...

Comprehensive inventory of important log files in MySQL

Table of contents Introduction Log classification...

SQL statements in Mysql do not use indexes

MySQL query not using index aggregation As we all...

HTML 5 Preview

<br />Original: http://www.alistapart.com/ar...

Detailed explanation of Docker container network port configuration process

Exposing network ports In fact, there are two par...

Navicat for MySQL 15 Registration and Activation Detailed Tutorial

1. Download Navicat for MySQL 15 https://www.navi...

Example code for implementing a hollow mask layer with CSS

Contents of this article: Page hollow mask layer,...

How to lock a virtual console session on Linux

When you are working on a shared system, you prob...

Linux file systems explained: ext4 and beyond

Today I will take you through the history of ext4...

HTML Editing Basics (A Must-Read for Newbies)

Open DREAMWEAVER and create a new HTML. . Propert...

Solution to EF (Entity Framework) inserting or updating data errors

Error message: Store update, insert, or delete st...

Best Practices for Developing Amap Applications with Vue

Table of contents Preface Asynchronous loading Pa...

Introduction to fourteen cases of SQL database

Data Sheet /* Navicat SQLite Data Transfer Source...