ホームページ ウェブフロントエンド htmlチュートリアル 30 CSS3実装マウス通過画像表示説明effect_html/css_WEB-ITnose

30 CSS3実装マウス通過画像表示説明effect_html/css_WEB-ITnose

Jun 24, 2016 am 11:49 AM

今日は、マウスが写真の上を通過したときに説明を表示するための CSS3 で実装された 30 の特殊効果を共有します。マウスがこれらの写真の上を通過すると、写真の説明が非常に眩しく表示されます。最良の結果を得るには、IE10 以降、Chrome、Firefox、Safari などの最新のブラウザで閲覧してください。

オンラインプレビュー ソースコードのダウンロード

実装コード。

html コード:

 <div class="container">        <!-- Top Navigation -->        <header class="codrops-header">                <h1>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>                Lily</h2>            <div class="grid">                <figure class="effect-lily">                        <img src="img/12.jpg" alt="img12"/>                        <figcaption>                            <div>                                <h2>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="img/1.jpg" alt="img1"/>                        <figcaption>                            <div>                                <h2>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>                Sadie</h2>            <div class="grid">                <figure class="effect-sadie">                        <img src="img/2.jpg" alt="img02"/>                        <figcaption>                            <h2>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="img/14.jpg" alt="img14"/>                        <figcaption>                            <h2>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>                Honey</h2>            <div class="grid">                <figure class="effect-honey">                        <img src="img/4.jpg" alt="img04"/>                        <figcaption>                            <h2>Dreamy <span>Honey</span> <i>Now</i></h2>                            <a href="#">View more</a>                        </figcaption>                                </figure>                <figure class="effect-honey">                        <img src="img/5.jpg" alt="img05"/>                        <figcaption>                            <h2>Dreamy <span>Honey</span> <i>Now</i></h2>                            <a href="#">View more</a>                        </figcaption>                                </figure>            </div>            <h2>                Layla</h2>            <div class="grid">                <figure class="effect-layla">                        <img src="img/6.jpg" alt="img06"/>                        <figcaption>                            <h2>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="img/3.jpg" alt="img03"/>                        <figcaption>                            <h2>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>                Zoe</h2>            <div class="grid">                <figure class="effect-zoe">                        <img src="img/25.jpg" alt="img25"/>                        <figcaption>                            <h2>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="img/26.jpg" alt="img26"/>                        <figcaption>                            <h2>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>                Oscar</h2>            <div class="grid">                <figure class="effect-oscar">                        <img src="img/9.jpg" alt="img09"/>                        <figcaption>                            <h2>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="img/10.jpg" alt="img10"/>                        <figcaption>                            <h2>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>                Marley</h2>            <div class="grid">                <figure class="effect-marley">                        <img src="img/11.jpg" alt="img11"/>                        <figcaption>                            <h2>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="img/12.jpg" alt="img12"/>                        <figcaption>                            <h2>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>                Ruby</h2>            <div class="grid">                <figure class="effect-ruby">                        <img src="img/13.jpg" alt="img13"/>                        <figcaption>                            <h2>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="img/14.jpg" alt="img14"/>                        <figcaption>                            <h2>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>                Roxy</h2>            <div class="grid">                <figure class="effect-roxy">                        <img src="img/15.jpg" alt="img15"/>                        <figcaption>                            <h2>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="img/1.jpg" alt="img01"/>                        <figcaption>                            <h2>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>                Bubba</h2>            <div class="grid">                <figure class="effect-bubba">                        <img src="img/2.jpg" alt="img02"/>                        <figcaption>                            <h2>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="img/16.jpg" alt="img16"/>                        <figcaption>                            <h2>Fresh <span>Bubba</span></h2>                            <p>Bubba likes to appear out of thin air.</p>                            <a href="#">View more</a>                        </figcaption>                                </figure>            </div>            <h2>                Romeo</h2>            <div class="grid">                <figure class="effect-romeo">                        <img src="img/17.jpg" alt="img17"/>                        <figcaption>                            <h2>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="img/18.jpg" alt="img18"/>                        <figcaption>                            <h2>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>                Dexter</h2>            <div class="grid">                <figure class="effect-dexter">                        <img src="img/19.jpg" alt="img19"/>                        <figcaption>                            <h2>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="img/12.jpg" alt="img12"/>                        <figcaption>                            <h2>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>                Sarah</h2>            <div class="grid">                <figure class="effect-sarah">                        <img src="img/13.jpg" alt="img13"/>                        <figcaption>                            <h2>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="img/20.jpg" alt="img20"/>                        <figcaption>                            <h2>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>                Chico</h2>            <div class="grid">                <figure class="effect-chico">                        <img src="img/15.jpg" alt="img15"/>                        <figcaption>                            <h2>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="img/4.jpg" alt="img04"/>                        <figcaption>                            <h2>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>                Milo</h2>            <div class="grid">                <figure class="effect-milo">                        <img src="img/11.jpg" alt="img11"/>                        <figcaption>                            <h2>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="img/3.jpg" alt="img03"/>                        <figcaption>                            <h2>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

このウェブサイトの声明
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。

ホットAIツール

Undresser.AI Undress

Undresser.AI Undress

リアルなヌード写真を作成する AI 搭載アプリ

AI Clothes Remover

AI Clothes Remover

写真から衣服を削除するオンライン AI ツール。

Undress AI Tool

Undress AI Tool

脱衣画像を無料で

Clothoff.io

Clothoff.io

AI衣類リムーバー

AI Hentai Generator

AI Hentai Generator

AIヘンタイを無料で生成します。

ホットツール

メモ帳++7.3.1

メモ帳++7.3.1

使いやすく無料のコードエディター

SublimeText3 中国語版

SublimeText3 中国語版

中国語版、とても使いやすい

ゼンドスタジオ 13.0.1

ゼンドスタジオ 13.0.1

強力な PHP 統合開発環境

ドリームウィーバー CS6

ドリームウィーバー CS6

ビジュアル Web 開発ツール

SublimeText3 Mac版

SublimeText3 Mac版

神レベルのコード編集ソフト(SublimeText3)

&lt; Progress&gt;の目的は何ですか 要素? &lt; Progress&gt;の目的は何ですか 要素? Mar 21, 2025 pm 12:34 PM

この記事では、HTML&lt; Progress&gt;について説明します。要素、その目的、スタイリング、および&lt; meter&gt;との違い要素。主な焦点は、&lt; Progress&gt;を使用することです。タスクの完了と&lt; Meter&gt; statiの場合

&lt; datalist&gt;の目的は何ですか 要素? &lt; datalist&gt;の目的は何ですか 要素? Mar 21, 2025 pm 12:33 PM

この記事では、HTML&lt; Datalist&GT;について説明します。オートコンプリートの提案を提供し、ユーザーエクスペリエンスの改善、エラーの削減によりフォームを強化する要素。

&lt; meter&gt;の目的は何ですか 要素? &lt; meter&gt;の目的は何ですか 要素? Mar 21, 2025 pm 12:35 PM

この記事では、html&lt; meter&gt;について説明します。要素は、範囲内でスカラーまたは分数値を表示するために使用され、Web開発におけるその一般的なアプリケーション。それは差別化&lt; Meter&gt; &lt; Progress&gt;およびex

HTML5のクロスブラウザー互換性のベストプラクティスは何ですか? HTML5のクロスブラウザー互換性のベストプラクティスは何ですか? Mar 17, 2025 pm 12:20 PM

記事では、HTML5クロスブラウザーの互換性を確保するためのベストプラクティスについて説明し、機能検出、プログレッシブエンハンスメント、およびテスト方法に焦点を当てています。

HTML5フォーム検証属性を使用してユーザー入力を検証するにはどうすればよいですか? HTML5フォーム検証属性を使用してユーザー入力を検証するにはどうすればよいですか? Mar 17, 2025 pm 12:27 PM

この記事では、ブラウザのユーザー入力を直接検証するために、必要、パターン、MIN、MAX、および長さの制限などのHTML5フォーム検証属性を使用して説明します。

ビューポートメタタグとは何ですか?レスポンシブデザインにとってなぜそれが重要なのですか? ビューポートメタタグとは何ですか?レスポンシブデザインにとってなぜそれが重要なのですか? Mar 20, 2025 pm 05:56 PM

この記事では、モバイルデバイスのレスポンシブWebデザインに不可欠なViewportメタタグについて説明します。適切な使用により、最適なコンテンツのスケーリングとユーザーの相互作用が保証され、誤用が設計とアクセシビリティの問題につながる可能性があることを説明しています。

HTML5&lt; time&gt;を使用するにはどうすればよいですか 日付と時刻を意味的に表す要素? HTML5&lt; time&gt;を使用するにはどうすればよいですか 日付と時刻を意味的に表す要素? Mar 12, 2025 pm 04:05 PM

この記事では、html5&lt; time&gt;について説明します。セマンティックデート/時刻表現の要素。 人間の読み取り可能なテキストとともに、マシンの読みやすさ(ISO 8601形式)のDateTime属性の重要性を強調し、Accessibilitを増やします

&lt; iframe&gt;の目的は何ですか タグ?使用する際のセキュリティ上の考慮事項は何ですか? &lt; iframe&gt;の目的は何ですか タグ?使用する際のセキュリティ上の考慮事項は何ですか? Mar 20, 2025 pm 06:05 PM

この記事では、&lt; iframe&gt;外部コンテンツをWebページ、その一般的な用途、セキュリティリスク、およびオブジェクトタグやAPIなどの代替案に埋め込む際のタグの目的。

See all articles