分享十个CSS3鼠标滑过文字动画特效_html/css_WEB-ITnose
介绍10组基于CSS3的鼠标滑过文字动画特效,有上凸、下凹等文字动画。这些炫酷的CSS3文字效果可以让网页变得更加绚丽。效果图如下:
在线预览 源码下载
实现的代码。
html代码:
<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代码:
@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

Heiße KI -Werkzeuge

Undresser.AI Undress
KI-gestützte App zum Erstellen realistischer Aktfotos

AI Clothes Remover
Online-KI-Tool zum Entfernen von Kleidung aus Fotos.

Undress AI Tool
Ausziehbilder kostenlos

Clothoff.io
KI-Kleiderentferner

AI Hentai Generator
Erstellen Sie kostenlos Ai Hentai.

Heißer Artikel

Heiße Werkzeuge

Notepad++7.3.1
Einfach zu bedienender und kostenloser Code-Editor

SublimeText3 chinesische Version
Chinesische Version, sehr einfach zu bedienen

Senden Sie Studio 13.0.1
Leistungsstarke integrierte PHP-Entwicklungsumgebung

Dreamweaver CS6
Visuelle Webentwicklungstools

SublimeText3 Mac-Version
Codebearbeitungssoftware auf Gottesniveau (SublimeText3)

Heiße Themen



Der Artikel erörtert den HTML & lt; Progress & gt; Element, Absicht, Styling und Unterschiede vom & lt; Meter & gt; Element. Das Hauptaugenmerk liegt auf der Verwendung & lt; Fortschritt & gt; Für Aufgabenabschluss und & lt; Meter & gt; für stati

Der Artikel erörtert den HTML & lt; Datalist & gt; Element, das die Formulare verbessert, indem automatische Vorschläge bereitgestellt, die Benutzererfahrung verbessert und Fehler reduziert werden.Character Count: 159

In Artikel werden Best Practices zur Gewährleistung der HTML5-Cross-Browser-Kompatibilität erörtert und sich auf die Erkennung von Merkmalen, die progressive Verbesserung und die Testmethoden konzentriert.

Der Artikel erörtert das HTML & lt; Meter & gt; Element, verwendet zur Anzeige von Skalar- oder Bruchwerten innerhalb eines Bereichs und seine gemeinsamen Anwendungen in der Webentwicklung. Es differenziert & lt; Meter & gt; von & lt; Fortschritt & gt; und Ex

In dem Artikel werden unter Verwendung von HTML5 -Formularvalidierungsattributen wie Erforderlich, Muster, Min, MAX und Längengrenzen erörtert, um die Benutzereingabe direkt im Browser zu validieren.

In dem Artikel wird das Ansichtsfenster -Meta -Tag erörtert, das für das reaktionsschnelle Webdesign auf mobilen Geräten unerlässlich ist. Es wird erläutert, wie die ordnungsgemäße Verwendung eine optimale Skalierung von Inhalten und Benutzerinteraktion gewährleistet, während Missbrauch zu Design- und Zugänglichkeitsproblemen führen kann.

Der Artikel erörtert das & lt; iframe & gt; Der Zweck von Tag, externe Inhalte in Webseiten, seine gemeinsamen Verwendungen, Sicherheitsrisiken und Alternativen wie Objekt -Tags und APIs einzubetten.

GitePages statische Website -Bereitstellung fehlgeschlagen: 404 Fehlerbehebung und Auflösung bei der Verwendung von Gitee ...
