//样式++
<style>/*animation: name duration timing-function delay iteration-count direction;animation-name 规定需要绑定到选择器的 keyframe 名称。。animation-duration 规定完成动画所花费的时间,以秒或毫秒计。animation-timing-function 规定动画的速度曲线。animation-delay 规定在动画开始之前的延迟。animation-iteration-count 规定动画应该播放的次数。animation-direction 规定是否应该轮流反向播放动画。*/a {display: inline-block;text-align: center; cursor: pointer; background: #e1e1e1;color: #999; padding: 1em; margin: 1em; text-decoration: none;}.magnify, .small {  transition-duration: 0.3s; }.magnify:hover, .magnify:focus, .magnify:active {transform: scale(1.1); /*scale改变为原来的几倍*/}.small:hover, .small:focus, .small:active { transform: scale(0.9); }@@keyframes for-bigsmall {25% {transform: scale(1.1); }75% { transform: scale(0.9); }}.for-bigsmall:hover, .for-bigsmall:focus, .for-bigsmall:active {animation: for-bigsmall 1s linear infinite;/*animation-name: for-bigsmall;animation-duration: 1s;animation-timing-function: linear;linear 动画从头到尾的速度是相同的animation-iteration-count: infinite;infinite 循环播放动画*/}@@keyframes for-magnify {to {transform: scale(1.1); }}.for-magnify:hover, .for-magnify:focus, .for-magnify:active {animation: for-magnify 0.3s linear infinite alternate; /*alternate动画应该轮流反向播放*/}@@keyframes for-small {to { transform: scale(0.9); }}.for-small:hover, .for-small:focus, .for-small:active {animation: for-small 0.3s linear infinite alternate; /*alternate动画应该轮流反向播放*/}.wave-magnify, .wave-small { transition-duration: 0.5s; }.wave-magnify:hover, .wave-magnify:focus, .wave-magnify:active {transform: scale(1.2);transition-timing-function: cubic-bezier(0.47, 2.02, 0.31, -0.36); /*cubic-bezier 自定义过渡效果的速度曲线*/}.wave-small:hover, .wave-small:focus, .wave-small:active {transform: scale(0.9);transition-timing-function: cubic-bezier(0.47, 2.02, 0.31, -0.36);}.slant {transition-duration: 0.3s;/*transform-origin: 0 100%; 允许你改变被转换元素的位置*/}.slant:hover, .slant:focus, .slant:active {transform: skew(10deg); /*skew倾斜转换*/}@@keyframes LRightYY {16.65% {-webkit-transform: translateX(8px); transform: translateX(8px);}33.3% {-webkit-transform: translateX(-6px); transform: translateX(-6px);}49.95% {-webkit-transform: translateX(4px); transform: translateX(4px);}66.6% {-webkit-transform: translateX(-2px); transform: translateX(-2px);}83.25% {-webkit-transform: translateX(1px); transform: translateX(1px);}100% {-webkit-transform: translateX(0); transform: translateX(0);}}.LRightYY:hover, .LRightYY:focus, .LRightYY:active {animation: LRightYY 1s ease-in-out 1;}@@keyframes UpbelowYY {16.65% { transform: translateY(8px); }33.3% { transform: translateY(-6px); }49.95% { transform: translateY(4px); }66.6% { transform: translateY(-2px); }83.25% { transform: translateY(1px); }100% { transform: translateY(0); }}.UpbelowYY:hover, .UpbelowYY:focus, .UpbelowYY:active {animation: UpbelowYY 1s ease-in-out 1;}@@keyframes YY {16.65% { transform: translate(8px,-8px); }33.3% { transform: translate(-6px.6px); }49.95% { transform: translate(4px,-4px); }66.6% { transform: translate(-2px,2px); }83.25% { transform: translate(1px,-1px); }100% { transform: translate(0,0); }}.YY:hover, .YY:focus, .YY:active { animation: YY 1s ease-in-out 1; }.SlowAlterBac {transform: translateZ(0); position: relative;transition-property: color; transition-duration: 0.3s;}.SlowAlterBac:before {content: "";position: absolute; z-index: -1; top: 0;left: 0; right: 0; bottom: 0; background: #000;transform-origin: 0 50%;transform: scaleX(0);transition: transform 0.3s ease-out;}.SlowAlterBac:hover, .SlowAlterBac:focus, .SlowAlterBac:active {color: white;}.SlowAlterBac:hover:before, .SlowAlterBac:focus:before, .SlowAlterBac:active:before {transform: scaleX(1);}.InvertedImage {transform: translateZ(0); position: relative; transition: transform 0.3s;}.InvertedImage:before {position: absolute; z-index: -1; content: ''; top: 100%;left: 5%;height: 10px; width: 90%;opacity: 0;background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 80%);transition-duration: 0.3s; transition-property: transform, opacity;}.InvertedImage:hover, .InvertedImage:focus, .InvertedImage:active {transform: translateY(-5px);}.InvertedImage:hover:before, .InvertedImage:focus:before, .InvertedImage:active:before {opacity: 1; transform: translateY(5px);}
</style>
//盒子++
<body><a href="#" class="magnify">放大</a><a href="#" class="small">放小</a><a href="#" class="for-bigsmall">for放大放小</a><a href="#" class="for-magnify">for放大</a><a href="#" class="for-small">for放小</a><a href="#" class="wave-magnify">波动放大</a><a href="#" class="wave-small">波动放小</a><br><a href="#" class="slant">倾斜边角(看效果)</a><a href="#" class="LRightYY">左右摇一摇</a><a href="#" class="UpbelowYY">上下摇一摇</a><a href="#" class="YY">摇一摇</a><a href="#" class="SlowAlterBac">缓慢改变背景</a><a href="#" class="InvertedImage">倒影</a>
</body>

纯CSS: hover特效相关推荐

  1. 纯css hover实现效果,纯CSS鼠标hover实现背景扇动效果

    纯CSS鼠标hover实现背景扇动效果 .la-btn { padding:14px 20px; background:#1abc9c; color:#fff; font-size:14px; ove ...

  2. html阴影特效作品及代码,纯CSS做特效网页(阴影,透明,画圆圈等等)

    每天进步一点,其实是很了不起的事情了. 废话不多说,直接看图! 效果2 效果2 第一步(可以先把背景图搞出来,当然你也可以先画主体,最后在搞背景,看自己心情嘛) html body {margin: ...

  3. 纯css hover放大图片

    记录自己在工作中遇到的一些比较有意义的,值得去记一记的知识. 这次主要做的是css的hover效果,在所有的效果里,选择了放大,这个也是设计的要求,就做了这个 其实这个要求来说,很简单,主要使用的是c ...

  4. 纯CSS动画流星自旋转

    纯CSS动画特效流星 外部CSS部分 /* body {background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%) ...

  5. 纯CSS自定义button按钮的点击特效

    纯css自定义button按钮的点击特效,实现背景变化 效果图如下: 代码如下: <!DOCTYPE html> <html> <head><meta cha ...

  6. html图片显示详情,纯CSS鼠标经过图片视差弹出层显示详情链接按钮特效代码.html...

    纯CSS鼠标经过图片视差弹出层显示详情链接按钮特效代码 * { box-sizing: border-box; } html, body { height: 100%; background:#ddd ...

  7. 超详细的纯CSS的照片墙特效

    超详细的纯CSS的照片墙特效 你好,欢迎来到Amy的第一篇博客呀~ 此博客纯属个人原创哦~ 前些天在公开课上讲过一个类似于拍立得的照片特效,然后在一个页面上放了多张就形成了一个照片墙,效果如下: 鼠标 ...

  8. 纯CSS翻牌图片特效

    使用图片 <!doctype html> <html> <head> <meta charset="utf-8"> <titl ...

  9. 4. 纯 CSS 创作一个金属光泽 3D 按钮特效

    4. 纯 CSS 创作一个金属光泽 3D 按钮特效 原文地址:https://segmentfault.com/a/1190000014599280 HTML代码: <div class=&qu ...

最新文章

  1. node、Mongo项目如何前后端分离提供接口给前端
  2. 用sisotool设计调节参数_工业净化车间施工的重要参数
  3. Python学习笔记--序列
  4. FFmpeg 结构体学习(八):FFMPEG中重要结构体之间的关系
  5. 05移动端布局基础之flex弹性布局项目实战(携程移动端首页)
  6. C++中错误no matching function for call to transform
  7. win7 curl安装
  8. 《深入浅出WPF》笔记——绑定篇(一)
  9. C# list与数组互相转换
  10. @value 静态变量_Java中的变量——通过示例学习Java编程(4)
  11. mysql2008无法登陆_SQL2008不能登录实例
  12. asio c++20 协程在windows下和linux下设定
  13. java系列7:this关键词
  14. 千锋2015.04月最新C语言基础视频教程
  15. “十一“出行防诈骗攻略来了!看完再出去浪
  16. 《今日头条中视频搬运项目》3-5天就可以产生利润【教程目录】
  17. shader 法线UV扭曲(类似金箔纸效果)(SurfaceShader)
  18. java socket ascii_TCP套接字上的ASCII - java
  19. 寒假还在纠结考研还是就业,听听研究生毕业的上班狗怎么说?
  20. android 内存不足警告,安卓手机老是提示内存不足怎么办

热门文章

  1. Mybatis框架 导入/导出功能的实现
  2. 华为手机媒体音量自动静音_华为手机的音量键原来这么牛逼,这五大玩法,97.777%的人不知道...
  3. 华为v5服务器安装操作系统,v5服务器
  4. 谈谈-Android状态栏的编辑
  5. 陈丽琳:如何以大数据助力商场运营
  6. android数据保存
  7. javascript frame框架间函数变量的相互引用 frame间相互传值
  8. 数据导入时遭遇 ORA-01187 ORA-01110
  9. Objective C的那点小语法
  10. College student reflects on getting started in open source(二)