30款css3实现的鼠标经过图片显示描述特效_html/css_WEB-ITnose
今天给大家分享30款css3实现的鼠标经过图片显示描述特效,鼠标经过这些图片的时候以非常炫的方式显示图片的描述。为保证最佳的效果,请在 IE10+、Chrome、Firefox 和 Safari 等现代浏览器中浏览。
在线预览 源码下载
实现的代码。
html代码:
<div class="container"> <!-- Top Navigation --> <header class="codrops-header"> <h1 id="Hover-Effect-Ideas-span-An-inspirational-collection-of-subtle-hover-effects-span">Hover Effect Ideas <span>An inspirational collection of subtle hover effects</span></h1> <nav class="codrops-demos"> <a class="current-demo" href="index.html">Set 1</a> <a href="index2.html">Set 2</a> </nav> </header> <div class="content"> <h2 id="Lily"> Lily</h2> <div class="grid"> <figure class="effect-lily"> <img src="/static/imghw/default1.png" data-src="img/12.jpg" class="lazy" alt="img12"/> <figcaption> <div> <h2 id="Nice-span-Lily-span">Nice <span>Lily</span></h2> <p>Lily likes to play with crayons and pencils</p> </div> <a href="#">View more</a> </figcaption> </figure> <figure class="effect-lily"> <img src="/static/imghw/default1.png" data-src="img/1.jpg" class="lazy" alt="img1"/> <figcaption> <div> <h2 id="Nice-span-Lily-span">Nice <span>Lily</span></h2> <p>Lily likes to play with crayons and pencils</p> </div> <a href="#">View more</a> </figcaption> </figure> </div> <h2 id="Sadie"> Sadie</h2> <div class="grid"> <figure class="effect-sadie"> <img src="/static/imghw/default1.png" data-src="img/2.jpg" class="lazy" alt="img02"/> <figcaption> <h2 id="Holy-span-Sadie-span">Holy <span>Sadie</span></h2> <p>Sadie never took her eyes off me. <br>She had a dark soul.</p> <a href="#">View more</a> </figcaption> </figure> <figure class="effect-sadie"> <img src="/static/imghw/default1.png" data-src="img/14.jpg" class="lazy" alt="img14"/> <figcaption> <h2 id="Holy-span-Sadie-span">Holy <span>Sadie</span></h2> <p>Sadie never took her eyes off me. <br>She had a dark soul.</p> <a href="#">View more</a> </figcaption> </figure> </div> <h2 id="Honey"> Honey</h2> <div class="grid"> <figure class="effect-honey"> <img src="/static/imghw/default1.png" data-src="img/4.jpg" class="lazy" alt="img04"/> <figcaption> <h2 id="Dreamy-span-Honey-span-i-Now-i">Dreamy <span>Honey</span> <i>Now</i></h2> <a href="#">View more</a> </figcaption> </figure> <figure class="effect-honey"> <img src="/static/imghw/default1.png" data-src="img/5.jpg" class="lazy" alt="img05"/> <figcaption> <h2 id="Dreamy-span-Honey-span-i-Now-i">Dreamy <span>Honey</span> <i>Now</i></h2> <a href="#">View more</a> </figcaption> </figure> </div> <h2 id="Layla"> Layla</h2> <div class="grid"> <figure class="effect-layla"> <img src="/static/imghw/default1.png" data-src="img/6.jpg" class="lazy" alt="img06"/> <figcaption> <h2 id="Crazy-span-Layla-span">Crazy <span>Layla</span></h2> <p>When Layla appears, she brings an eternal summer along.</p> <a href="#">View more</a> </figcaption> </figure> <figure class="effect-layla"> <img src="/static/imghw/default1.png" data-src="img/3.jpg" class="lazy" alt="img03"/> <figcaption> <h2 id="Crazy-span-Layla-span">Crazy <span>Layla</span></h2> <p>When Layla appears, she brings an eternal summer along.</p> <a href="#">View more</a> </figcaption> </figure> </div> <h2 id="Zoe"> Zoe</h2> <div class="grid"> <figure class="effect-zoe"> <img src="/static/imghw/default1.png" data-src="img/25.jpg" class="lazy" alt="img25"/> <figcaption> <h2 id="Creative-span-Zoe-span">Creative <span>Zoe</span></h2> <p class="icon-links"> <a href="#"><span class="icon-heart"></span></a> <a href="#"><span class="icon-eye"></span></a> <a href="#"><span class="icon-paper-clip"></span></a> </p> <p class="description">Zoe never had the patience of her sisters. She deliberately punched the bear in his face.</p> </figcaption> </figure> <figure class="effect-zoe"> <img src="/static/imghw/default1.png" data-src="img/26.jpg" class="lazy" alt="img26"/> <figcaption> <h2 id="Creative-span-Zoe-span">Creative <span>Zoe</span></h2> <p class="icon-links"> <a href="#"><span class="icon-heart"></span></a> <a href="#"><span class="icon-eye"></span></a> <a href="#"><span class="icon-paper-clip"></span></a> </p> <p class="description">Zoe never had the patience of her sisters. She deliberately punched the bear in his face.</p> </figcaption> </figure> </div> <h2 id="Oscar"> Oscar</h2> <div class="grid"> <figure class="effect-oscar"> <img src="/static/imghw/default1.png" data-src="img/9.jpg" class="lazy" alt="img09"/> <figcaption> <h2 id="Warm-span-Oscar-span">Warm <span>Oscar</span></h2> <p>Oscar is a decent man. He used to clean porches with pleasure.</p> <a href="#">View more</a> </figcaption> </figure> <figure class="effect-oscar"> <img src="/static/imghw/default1.png" data-src="img/10.jpg" class="lazy" alt="img10"/> <figcaption> <h2 id="Warm-span-Oscar-span">Warm <span>Oscar</span></h2> <p>Oscar is a decent man. He used to clean porches with pleasure.</p> <a href="#">View more</a> </figcaption> </figure> </div> <h2 id="Marley"> Marley</h2> <div class="grid"> <figure class="effect-marley"> <img src="/static/imghw/default1.png" data-src="img/11.jpg" class="lazy" alt="img11"/> <figcaption> <h2 id="Sweet-span-Marley-span">Sweet <span>Marley</span></h2> <p>Marley tried to convince her but she was not interested.</p> <a href="#">View more</a> </figcaption> </figure> <figure class="effect-marley"> <img src="/static/imghw/default1.png" data-src="img/12.jpg" class="lazy" alt="img12"/> <figcaption> <h2 id="Sweet-span-Marley-span">Sweet <span>Marley</span></h2> <p>Marley tried to convince her but she was not interested.</p> <a href="#">View more</a> </figcaption> </figure> </div> <h2 id="Ruby"> Ruby</h2> <div class="grid"> <figure class="effect-ruby"> <img src="/static/imghw/default1.png" data-src="img/13.jpg" class="lazy" alt="img13"/> <figcaption> <h2 id="Glowing-span-Ruby-span">Glowing <span>Ruby</span></h2> <p>Ruby did not need any help. Everybody knew that.</p> <a href="#">View more</a> </figcaption> </figure> <figure class="effect-ruby"> <img src="/static/imghw/default1.png" data-src="img/14.jpg" class="lazy" alt="img14"/> <figcaption> <h2 id="Glowing-span-Ruby-span">Glowing <span>Ruby</span></h2> <p>Ruby did not need any help. Everybody knew that.</p> <a href="#">View more</a> </figcaption> </figure> </div> <h2 id="Roxy"> Roxy</h2> <div class="grid"> <figure class="effect-roxy"> <img src="/static/imghw/default1.png" data-src="img/15.jpg" class="lazy" alt="img15"/> <figcaption> <h2 id="Charming-span-Roxy-span">Charming <span>Roxy</span></h2> <p>Roxy was my best friend. She'd cross any border for me.</p> <a href="#">View more</a> </figcaption> </figure> <figure class="effect-roxy"> <img src="/static/imghw/default1.png" data-src="img/1.jpg" class="lazy" alt="img01"/> <figcaption> <h2 id="Charming-span-Roxy-span">Charming <span>Roxy</span></h2> <p>Roxy was my best friend. She'd cross any border for me.</p> <a href="#">View more</a> </figcaption> </figure> </div> <h2 id="Bubba"> Bubba</h2> <div class="grid"> <figure class="effect-bubba"> <img src="/static/imghw/default1.png" data-src="img/2.jpg" class="lazy" alt="img02"/> <figcaption> <h2 id="Fresh-span-Bubba-span">Fresh <span>Bubba</span></h2> <p>Bubba likes to appear out of thin air.</p> <a href="#">View more</a> </figcaption> </figure> <figure class="effect-bubba"> <img src="/static/imghw/default1.png" data-src="img/16.jpg" class="lazy" alt="img16"/> <figcaption> <h2 id="Fresh-span-Bubba-span">Fresh <span>Bubba</span></h2> <p>Bubba likes to appear out of thin air.</p> <a href="#">View more</a> </figcaption> </figure> </div> <h2 id="Romeo"> Romeo</h2> <div class="grid"> <figure class="effect-romeo"> <img src="/static/imghw/default1.png" data-src="img/17.jpg" class="lazy" alt="img17"/> <figcaption> <h2 id="Wild-span-Romeo-span">Wild <span>Romeo</span></h2> <p>Romeo never knows what he wants. He seemed to be very cross about something.</p> <a href="#">View more</a> </figcaption> </figure> <figure class="effect-romeo"> <img src="/static/imghw/default1.png" data-src="img/18.jpg" class="lazy" alt="img18"/> <figcaption> <h2 id="Wild-span-Romeo-span">Wild <span>Romeo</span></h2> <p>Romeo never knows what he wants. He seemed to be very cross about something.</p> <a href="#">View more</a> </figcaption> </figure> </div> <h2 id="Dexter"> Dexter</h2> <div class="grid"> <figure class="effect-dexter"> <img src="/static/imghw/default1.png" data-src="img/19.jpg" class="lazy" alt="img19"/> <figcaption> <h2 id="Strange-span-Dexter-span">Strange <span>Dexter</span></h2> <p>Dexter had his own strange way. You could watch him training ants.</p> <a href="#">View more</a> </figcaption> </figure> <figure class="effect-dexter"> <img src="/static/imghw/default1.png" data-src="img/12.jpg" class="lazy" alt="img12"/> <figcaption> <h2 id="Strange-span-Dexter-span">Strange <span>Dexter</span></h2> <p>Dexter had his own strange way. You could watch him training ants.</p> <a href="#">View more</a> </figcaption> </figure> </div> <h2 id="Sarah"> Sarah</h2> <div class="grid"> <figure class="effect-sarah"> <img src="/static/imghw/default1.png" data-src="img/13.jpg" class="lazy" alt="img13"/> <figcaption> <h2 id="Free-span-Sarah-span">Free <span>Sarah</span></h2> <p>Sarah likes to watch clouds. She's quite depressed.</p> <a href="#">View more</a> </figcaption> </figure> <figure class="effect-sarah"> <img src="/static/imghw/default1.png" data-src="img/20.jpg" class="lazy" alt="img20"/> <figcaption> <h2 id="Free-span-Sarah-span">Free <span>Sarah</span></h2> <p>Sarah likes to watch clouds. She's quite depressed.</p> <a href="#">View more</a> </figcaption> </figure> </div> <h2 id="Chico"> Chico</h2> <div class="grid"> <figure class="effect-chico"> <img src="/static/imghw/default1.png" data-src="img/15.jpg" class="lazy" alt="img15"/> <figcaption> <h2 id="Silly-span-Chico-span">Silly <span>Chico</span></h2> <p>Chico's main fear was missing the morning bus.</p> <a href="#">View more</a> </figcaption> </figure> <figure class="effect-chico"> <img src="/static/imghw/default1.png" data-src="img/4.jpg" class="lazy" alt="img04"/> <figcaption> <h2 id="Silly-span-Chico-span">Silly <span>Chico</span></h2> <p>Chico's main fear was missing the morning bus.</p> <a href="#">View more</a> </figcaption> </figure> </div> <h2 id="Milo"> Milo</h2> <div class="grid"> <figure class="effect-milo"> <img src="/static/imghw/default1.png" data-src="img/11.jpg" class="lazy" alt="img11"/> <figcaption> <h2 id="Faithful-span-Milo-span">Faithful <span>Milo</span></h2> <p>Milo went to the woods. He took a fun ride and never came back.</p> <a href="#">View more</a> </figcaption> </figure> <figure class="effect-milo"> <img src="/static/imghw/default1.png" data-src="img/3.jpg" class="lazy" alt="img03"/> <figcaption> <h2 id="Faithful-span-Milo-span">Faithful <span>Milo</span></h2> <p>Milo went to the woods. He took a fun ride and never came back.</p> <a href="#">View more</a> </figcaption> </figure> </div> </div> <nav class="codrops-demos"> <a class="current-demo" href="index.html">Set 1</a> <a href="index2.html">Set 2</a> </nav> <!-- Related demos --> </div>
via:http://www.w2bc.com/Article/19556

Alat AI Hot

Undresser.AI Undress
Apl berkuasa AI untuk mencipta foto bogel yang realistik

AI Clothes Remover
Alat AI dalam talian untuk mengeluarkan pakaian daripada foto.

Undress AI Tool
Gambar buka pakaian secara percuma

Clothoff.io
Penyingkiran pakaian AI

AI Hentai Generator
Menjana ai hentai secara percuma.

Artikel Panas

Alat panas

Notepad++7.3.1
Editor kod yang mudah digunakan dan percuma

SublimeText3 versi Cina
Versi Cina, sangat mudah digunakan

Hantar Studio 13.0.1
Persekitaran pembangunan bersepadu PHP yang berkuasa

Dreamweaver CS6
Alat pembangunan web visual

SublimeText3 versi Mac
Perisian penyuntingan kod peringkat Tuhan (SublimeText3)

Topik panas



Artikel ini membincangkan html & lt; kemajuan & gt; elemen, tujuan, gaya, dan perbezaan dari & lt; meter & gt; elemen. Tumpuan utama adalah menggunakan & lt; kemajuan & gt; untuk menyelesaikan tugas dan & lt; meter & gt; untuk stati

Artikel ini membincangkan html & lt; datalist & gt; elemen, yang meningkatkan bentuk dengan menyediakan cadangan autokomplete, meningkatkan pengalaman pengguna dan mengurangkan kesilapan. Kira -kira: 159

Artikel ini membincangkan html & lt; meter & gt; elemen, digunakan untuk memaparkan nilai skalar atau pecahan dalam julat, dan aplikasi umum dalam pembangunan web. Ia membezakan & lt; meter & gt; dari & lt; kemajuan & gt; dan Ex

Artikel ini membincangkan tag Meta Viewport, penting untuk reka bentuk web responsif pada peranti mudah alih. Ia menerangkan bagaimana penggunaan yang betul memastikan skala kandungan yang optimum dan interaksi pengguna, sementara penyalahgunaan boleh membawa kepada isu reka bentuk dan kebolehaksesan.

Artikel ini membincangkan & lt; iframe & gt; Tujuan TAG dalam membenamkan kandungan luaran ke dalam halaman web, kegunaan umum, risiko keselamatan, dan alternatif seperti tag objek dan API.

HTML sesuai untuk pemula kerana mudah dan mudah dipelajari dan dapat melihat hasilnya dengan cepat. 1) Keluk pembelajaran HTML adalah lancar dan mudah dimulakan. 2) Hanya menguasai tag asas untuk mula membuat laman web. 3) Fleksibiliti yang tinggi dan boleh digunakan dalam kombinasi dengan CSS dan JavaScript. 4) Sumber pembelajaran yang kaya dan alat moden menyokong proses pembelajaran.

HTML mentakrifkan struktur web, CSS bertanggungjawab untuk gaya dan susun atur, dan JavaScript memberikan interaksi dinamik. Ketiga melaksanakan tugas mereka dalam pembangunan web dan bersama -sama membina laman web yang berwarna -warni.

Anexampleofastartartingtaginhtmlis, yangbeginsaparagraph.startingtagsareessentialinhtmlasttheyinitiateelements, definetheirtypes, andarecrucialforstructuringwebpagesandconstructionthedom.
