search
HomeWeb Front-endHTML TutorialShare ten CSS3 mouse over text animation effects_html/css_WEB-ITnose

Introducing 10 groups of mouse-over text animation special effects based on CSS3, including convex, concave and other text animations. These cool CSS3 text effects can make web pages more gorgeous. The renderings are as follows:

Online preview Source code download

Implemented code.

html code:

 <h2 id="Push-down-shadow-effect">        Push down (shadow effect)</h2>    <div class="headingWrapper color-bright">        <a href="" class="header header--pushDown header--shadow" title="HOVER ME">HOVER ME</a>    </div>    <div class="headingWrapper">        <a href="" class="header header--pushDown header--shadow" title="HOVER ME">HOVER ME</a>    </div>    <h2 id="Raise-up-shadow-effect">        Raise up (shadow effect)</h2>    <div class="headingWrapper color-bright">        <a href="" class="header header--raiseUp header--shadow">HOVER ME</a>    </div>    <div class="headingWrapper">        <a href="" class="header header--raiseUp header--shadow">HOVER ME</a>    </div>    <h2 id="Push-down-merging-into-page">        Push down (merging into page)</h2>    <div class="headingWrapper color-bright">        <a href="" class="header header--pushDown">HOVER ME</a>    </div>    <div class="headingWrapper">        <a href="" class="header header--pushDown">HOVER ME</a>    </div>    <h2 id="Raise-up-emerging-from-page">        Raise up (emerging from page)</h2>    <div class="headingWrapper color-bright">        <a href="" class="header header--raiseUp">HOVER ME</a>    </div>    <div class="headingWrapper">        <a href="" class="header header--raiseUp">HOVER ME</a>    </div>    <h2 id="Raised-up-emerging-from-bg-with-pattern">        Raised up (emerging from bg) with pattern</h2>    <div class="headingWrapper color-bright">        <a href="#" class="header header--raiseUp header--svg">            <svg>                <defs>                    <lineargradient id="stripedColor" x1="0" x2="0" y1="0%" y2="4%" spreadmethod="repeat">                        <stop offset="0%" stop-color="#e62915" />                        <stop offset="50%" stop-color="#e62915" />                        <stop offset="51%" stop-color="#fff" />                        <stop offset="99%" stop-color="#fff" />                        <stop offset="100%" stop-color="#e62915" />                    </lineargradient>                </defs>                <text y="1.2em">Hover Me</text>            </svg>        </a>    </div>    <div class="headingWrapper">        <a href="#" class="header header--raiseUp header--svg">            <svg>                <defs>                    <lineargradient id="striped" x1="0" x2="0" y1="0%" y2="4%" spreadmethod="repeat">                        <stop offset="0%" stop-color="#e62915" />                        <stop offset="50%" stop-color="#e62915" />                        <stop offset="51%" stop-color="#fff" />                        <stop offset="99%" stop-color="#fff" />                        <stop offset="100%" stop-color="#e62915" />                    </lineargradient>                </defs>                <text y="1.2em">Hover Me</text>            </svg>        </a>    </div>

css3 code:

@charset "UTF-8";* {  box-sizing: border-box;}body {  font-size: 62.5%;}h1, h2, h3 {  font-family: 'PT Sans', sans-serif;  text-transform: uppercase;}h1 {  font-size: 2.4em;  background-color: #292929;  text-align: center;  padding: 20px;  margin: 0;  color: #fff;}h1 a {  display: block;  margin-top: 10px;  text-transform: none;  color: #aaa;  font-size: 16px;  text-decoration: none;}h2 {  font-size: 1.6em;  margin: 0;  padding: 10px;  border-top: 1px solid #ccc;}h3 {  margin: 0;  padding: 10px;}.headingOuter {  background: #f1f1f1;  text-align: center;  margin-top: 30px;  border-top: 1px solid #333;  border-bottom: 1px solid #333;}.headingOuter:first-child {  margin-top: 0;}h1 + .headingOuter {  margin-top: 10px;}.headingWrapper {  text-align: center;  background-color: #fff;  padding: 10px;}.header {  display: inline-block;  text-align: center;  font-family: 'Francois One', Helvetica, Arial, sans-serif;  font-size: 96px;  color: #e7e7e7;  text-decoration: none;  text-shadow: 1.5px 1.5px 0 #cac6c5, -1.5px -1.5px 0 #cac6c5, -1.5px -1.5px 0 #cac6c5, -1.5px 1.5px 0 #cac6c5, 1.5px -1.5px 0 #cac6c5;  transition: all 400ms ease-in-out;}.header--pushDown {  text-shadow: 1.5px 1.5px 0 #333, 0px 1.5px 0 #333, -1.5px -1.5px 0 #333, -1.5px -1.5px 0 #333, -1.5px 1.5px 0 #333, 1.5px -1.5px 0 #333, 0.77782px 0.77782px 0 #aaaaaa, 1.55563px 1.55563px 0 #aaaaaa, 2.33345px 2.33345px 0 #aaaaaa, 3.11127px 3.11127px 0 #aaaaaa, 3.88909px 3.88909px 0 #aaaaaa, 4.6669px 4.6669px 0 #aaaaaa, 5.44472px 5.44472px 0 #aaaaaa, 6.22254px 6.22254px 0 #aaaaaa, 7.00036px 7.00036px 0 #aaaaaa, 7.77817px 7.77817px 0 #aaaaaa;}.header--pushDown:hover {  transform: translate(9px, 9px);  text-shadow: 1.5px 1.5px 0 #cac6c5, -1.5px -1.5px 0 #cac6c5, -1.5px -1.5px 0 #cac6c5, -1.5px 1.5px 0 #cac6c5, 1.5px -1.5px 0 #cac6c5;}.header--raiseUp:hover {  transform: translate(-9px, -9px);  text-shadow: 1.5px 1.5px 0 #333, 0px 1.5px 0 #333, -1.5px -1.5px 0 #333, -1.5px -1.5px 0 #333, -1.5px 1.5px 0 #333, 1.5px -1.5px 0 #333, 0.77782px 0.77782px 0 #aaaaaa, 1.55563px 1.55563px 0 #aaaaaa, 2.33345px 2.33345px 0 #aaaaaa, 3.11127px 3.11127px 0 #aaaaaa, 3.88909px 3.88909px 0 #aaaaaa, 4.6669px 4.6669px 0 #aaaaaa, 5.44472px 5.44472px 0 #aaaaaa, 6.22254px 6.22254px 0 #aaaaaa, 7.00036px 7.00036px 0 #aaaaaa, 7.77817px 7.77817px 0 #aaaaaa;}.header--shadow:hover {  transform: translate(5px, 0);}.header--shadow.header--raiseUp:hover {  transform: translate(-5px, 0);}.color-bright {  background-color: #ebaca5;}.color-bright .header {  color: #f89bb4;  text-shadow: 1.5px 1.5px 0 #d38076, -1.5px -1.5px 0 #d38076, -1.5px -1.5px 0 #d38076, -1.5px 1.5px 0 #d38076, 1.5px -1.5px 0 #d38076;}.color-bright .header--pushDown {  text-shadow: 1.5px 1.5px 0 #fff, 0px 1.5px 0 #fff, -1.5px -1.5px 0 #fff, -1.5px -1.5px 0 #fff, -1.5px 1.5px 0 #fff, 1.5px -1.5px 0 #fff, 0.77782px 0.77782px 0 #e62915, 1.55563px 1.55563px 0 #e62915, 2.33345px 2.33345px 0 #e62915, 3.11127px 3.11127px 0 #e62915, 3.88909px 3.88909px 0 #e62915, 4.6669px 4.6669px 0 #e62915, 5.44472px 5.44472px 0 #e62915, 6.22254px 6.22254px 0 #e62915, 7.00036px 7.00036px 0 #e62915, 7.77817px 7.77817px 0 #e62915;}.color-bright .header--pushDown:hover {  text-shadow: 1.5px 1.5px 0 #d38076, -1.5px -1.5px 0 #d38076, -1.5px -1.5px 0 #d38076, -1.5px 1.5px 0 #d38076, 1.5px -1.5px 0 #d38076;}.color-bright .header--raiseUp:hover {  text-shadow: 1.5px 1.5px 0 #fff, 0px 1.5px 0 #fff, -1.5px -1.5px 0 #fff, -1.5px -1.5px 0 #fff, -1.5px 1.5px 0 #fff, 1.5px -1.5px 0 #fff, 0.77782px 0.77782px 0 #e62915, 1.55563px 1.55563px 0 #e62915, 2.33345px 2.33345px 0 #e62915, 3.11127px 3.11127px 0 #e62915, 3.88909px 3.88909px 0 #e62915, 4.6669px 4.6669px 0 #e62915, 5.44472px 5.44472px 0 #e62915, 6.22254px 6.22254px 0 #e62915, 7.00036px 7.00036px 0 #e62915, 7.77817px 7.77817px 0 #e62915;}svg {  line-height: 1.2;  width: 410px;  height: 1.5em;}.header--svg text,.header--svg stop {  transition: all 350ms ease-in-out;}.header--svg text {  text-transform: uppercase;  fill: url(#striped);  text-shadow: 1.5px 1.5px 0 #cac6c5, -1.5px -1.5px 0 #cac6c5, -1.5px -1.5px 0 #cac6c5, -1.5px 1.5px 0 #cac6c5, 1.5px -1.5px 0 #cac6c5;}.header--svg:hover text {  text-shadow: 1.5px 1.5px 0 #333, 0px 1.5px 0 #333, -1.5px -1.5px 0 #333, -1.5px -1.5px 0 #333, -1.5px 1.5px 0 #333, 1.5px -1.5px 0 #333, 0.77782px 0.77782px 0 #aaaaaa, 1.55563px 1.55563px 0 #aaaaaa, 2.33345px 2.33345px 0 #aaaaaa, 3.11127px 3.11127px 0 #aaaaaa, 3.88909px 3.88909px 0 #aaaaaa, 4.6669px 4.6669px 0 #aaaaaa, 5.44472px 5.44472px 0 #aaaaaa, 6.22254px 6.22254px 0 #aaaaaa, 7.00036px 7.00036px 0 #aaaaaa, 7.77817px 7.77817px 0 #aaaaaa;}.header--svg stop {  stop-color: #e7e7e7;}.header--svg:hover stop {  stop-color: #fff;}.header--svg:hover stop:nth-child(2), .header--svg:hover stop:nth-child(3) {  stop-color: #d38076;}.color-bright .header--svg text {  fill: url(#stripedColor);  text-shadow: 1.5px 1.5px 0 #d38076, -1.5px -1.5px 0 #d38076, -1.5px -1.5px 0 #d38076, -1.5px 1.5px 0 #d38076, 1.5px -1.5px 0 #d38076;}.color-bright .header--svg:hover text {  text-shadow: 1.5px 1.5px 0 #fff, 0px 1.5px 0 #fff, -1.5px -1.5px 0 #fff, -1.5px -1.5px 0 #fff, -1.5px 1.5px 0 #fff, 1.5px -1.5px 0 #fff, 0.77782px 0.77782px 0 #e62915, 1.55563px 1.55563px 0 #e62915, 2.33345px 2.33345px 0 #e62915, 3.11127px 3.11127px 0 #e62915, 3.88909px 3.88909px 0 #e62915, 4.6669px 4.6669px 0 #e62915, 5.44472px 5.44472px 0 #e62915, 6.22254px 6.22254px 0 #e62915, 7.00036px 7.00036px 0 #e62915, 7.77817px 7.77817px 0 #e62915;}.color-bright stop {  stop-color: #f89bb4;}.color-bright .header--svg:hover stop:nth-child(2), .color-bright .header--svg:hover stop:nth-child(3) {  stop-color: #ed5751;}

via: http://www. w2bc.com/Article/18183

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
HTML in Action: Examples of Website StructureHTML in Action: Examples of Website StructureMay 05, 2025 am 12:03 AM

HTML is used to build websites with clear structure. 1) Use tags such as, and define the website structure. 2) Examples show the structure of blogs and e-commerce websites. 3) Avoid common mistakes such as incorrect label nesting. 4) Optimize performance by reducing HTTP requests and using semantic tags.

How do you insert an image into an HTML page?How do you insert an image into an HTML page?May 04, 2025 am 12:02 AM

ToinsertanimageintoanHTMLpage,usethetagwithsrcandaltattributes.1)UsealttextforaccessibilityandSEO.2)Implementsrcsetforresponsiveimages.3)Applylazyloadingwithloading="lazy"tooptimizeperformance.4)OptimizeimagesusingtoolslikeImageOptimtoreduc

HTML's Purpose: Enabling Web Browsers to Display ContentHTML's Purpose: Enabling Web Browsers to Display ContentMay 03, 2025 am 12:03 AM

The core purpose of HTML is to enable the browser to understand and display web content. 1. HTML defines the web page structure and content through tags, such as, to, etc. 2. HTML5 enhances multimedia support and introduces and tags. 3.HTML provides form elements to support user interaction. 4. Optimizing HTML code can improve web page performance, such as reducing HTTP requests and compressing HTML.

Why are HTML tags important for web development?Why are HTML tags important for web development?May 02, 2025 am 12:03 AM

HTMLtagsareessentialforwebdevelopmentastheystructureandenhancewebpages.1)Theydefinelayout,semantics,andinteractivity.2)SemantictagsimproveaccessibilityandSEO.3)Properuseoftagscanoptimizeperformanceandensurecross-browsercompatibility.

Explain the importance of using consistent coding style for HTML tags and attributes.Explain the importance of using consistent coding style for HTML tags and attributes.May 01, 2025 am 12:01 AM

A consistent HTML encoding style is important because it improves the readability, maintainability and efficiency of the code. 1) Use lowercase tags and attributes, 2) Keep consistent indentation, 3) Select and stick to single or double quotes, 4) Avoid mixing different styles in projects, 5) Use automation tools such as Prettier or ESLint to ensure consistency in styles.

How to implement multi-project carousel in Bootstrap 4?How to implement multi-project carousel in Bootstrap 4?Apr 30, 2025 pm 03:24 PM

Solution to implement multi-project carousel in Bootstrap4 Implementing multi-project carousel in Bootstrap4 is not an easy task. Although Bootstrap...

How does deepseek official website achieve the effect of penetrating mouse scroll event?How does deepseek official website achieve the effect of penetrating mouse scroll event?Apr 30, 2025 pm 03:21 PM

How to achieve the effect of mouse scrolling event penetration? When we browse the web, we often encounter some special interaction designs. For example, on deepseek official website, �...

How to modify the playback control style of HTML videoHow to modify the playback control style of HTML videoApr 30, 2025 pm 03:18 PM

The default playback control style of HTML video cannot be modified directly through CSS. 1. Create custom controls using JavaScript. 2. Beautify these controls through CSS. 3. Consider compatibility, user experience and performance, using libraries such as Video.js or Plyr can simplify the process.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.