//样式++
<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. Web应用漏洞评估工具Paros
  2. 企业网络推广——企业网络推广表示合理采集可助力网站品质提升
  3. Helios与Katana的区别
  4. numpy 矩阵乘法_一起学习Python常用模块——numpy
  5. Docker ASP.NET Core 2.0 微服务跨平台实践
  6. 动态存储器是什么意思
  7. struts2通配符_基于Struts2框架的名片管理系统
  8. CoreAnimation编程指南(九)图层布局
  9. framework中编译anroid工程并在模拟器上运行
  10. 信息学奥赛一本通 2006:【20CSPJ普及组】表达式 | 洛谷 P7073 [CSP-J2020] 表达式
  11. 使用 ramda 解析 .yarnrc/.npmrc 配置文件的例子
  12. python读取表格画散点图_python学习笔记-绘制散点图
  13. 基于Docker swarm 集群搭建SSR 学习
  14. nb信号和4g信号_【行业】万物互联的世界NB-IoT VS 4G,到底哪个更能打?
  15. WEB - 使用CSS 画一个正方体
  16. php同步今日头条,135编辑器可直接同步今日头条,新功能同时上线!
  17. mysql数据模型三要素_数据模型的作用及三要素是什么?
  18. Oracle 基本语句语法
  19. UFO-ViT:没有Softmax的高性能线性视觉Transformer
  20. 【104】ntvdm.exe占内存极大的问题

热门文章

  1. C# Tailor Your Application by Building a Custom Forms Designer with .NET
  2. c语言微秒级延时,linux下写个C语言程序,要求有0.5微秒以下的延时,要怎样写...
  3. (原创)3.2 AddOwner和OverrideMetadata的区别
  4. web.xml中 /和/*的区别
  5. 两个Liunx服务器之间的文件夹迁移
  6. 重炉后-文件上传下载
  7. 在sphinx中处理使用特殊字符时所引起错误的办法
  8. CloudStack 配置高级网络简明手册
  9. 如何在eclipse中使用XYLayout布局?在此介绍如何把XYLayout导入到eclipse .
  10. subsonic 配置及使用