博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
css实现旋转、放大
阅读量:3948 次
发布时间:2019-05-24

本文共 503 字,大约阅读时间需要 1 分钟。

1. 旋转不放大

在这里插入图片描述

img{
animation: rotation 3s linear infinite; } /*旋转动画*/ @keyframes rotation {
to {
transform:rotate(1turn); //1trun = 360deg } }

2. 边旋转边放大

在这里插入图片描述

img{
animation: rotation 3s linear infinite; } /*旋转动画*/ @keyframes rotation {
0% {
transform: rotate(0deg); } 50% {
transform: scale(1.5) rotate(180deg); } 100% {
transform: rotate(360deg); } }

转载地址:http://fchwi.baihongyu.com/

你可能感兴趣的文章
Shell开启扩展模式匹配shopt -s extglob
查看>>
浅谈 URI 及其转义
查看>>
nginx 优化
查看>>
openresty+lua在反向代理服务中的玩法
查看>>
ClickHouse集群搭建从0到1
查看>>
nginx实现请求的负载均衡 + keepalived实现nginx的高可用
查看>>
linux shell 中数组的定义和for循环遍历的方法
查看>>
求1!+2!+3!....+20!(java代码)
查看>>
VMware安装Ubuntu系统无法选择语言
查看>>
QT5.12安装
查看>>
Git/Github初步使用记录
查看>>
QT 开发问题合集
查看>>
Github使用问题合集
查看>>
QT多线程服务器
查看>>
Ubuntu 18.04.2 ulimit配置
查看>>
Ubuntu Mysql 安装与配置
查看>>
QT5.12 Mysql驱动未能加载问题
查看>>
现场直击|SequoiaDB@SIGMOD 2021:关注数据库的根科技存储技术
查看>>
赋能政企智慧办公,巨杉数据库与致远互联完成产品互认证
查看>>
SequoiaDB湖仓一体架构亮相 ACM SIGMOD 2021
查看>>