マウスオーバー効果

CSS3のアニメーション効果は、ページ内の少ないcompiled.cssファイルでコンパイルSASSコンパイルSASS-compiled.cssファイルまたはLESSで導入する必要がピクチャ・マスク層の上にマウスを使用してください。

<link rel="stylesheet" href="css/sass-compiled.css" type="text/css" />

または:

1
< link  rel = "stylesheet"  href = "css/less-compiled.css"  type = "text/css"  />

次のようにピクチャ・マスク層アニメーション効果、基本的なHTMLの構造上にCSS3マウスは次のとおりです。

1
2
3
4
5
6
7
< div  class = "pic" >
     < img  src = "img/01.jpg"  class = "pic-image"  alt = "Pic" />
     < span  class = "pic-caption bottom-to-top" >
         < h1  class = "pic-title" >Pic Title</ h1 >
         < p >图片描述文本</ p >
     </ span >
</ div >

 

利用可能なアニメーション

利用可能な次の12のCSS3のアニメーション効果のピクチャ・マスク層のアニメーション効果上CSS3マウス。

1
2
3
4
5
6
7
8
9
10
11
12
.bottom-to-top:从下到上滑动。
.top-to-bottom:从上到下滑动。
.left-to-right:从左向右滑动。
.right-to-left:从右向左滑动。
.rotate-in:旋转进入。
.rotate-out:旋转离开。
.open-up:向上翻转。
.open-down:向下翻转。
.open-left:向左翻转。
.open-right:向右翻转。
.come-left:带倾斜效果的向左翻转。
.come-right:带倾斜效果的向右翻转。

おすすめ

転載: www.cnblogs.com/JurasVon/p/11776523.html