Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
jumping
floating
jogging
flipping
twirling
falling
css
* { box-sizing: border-box; } html, body { height: 100%; } .container { max-height: 100vh; -webkit-perspective: 1000px; perspective: 1000px; position: relative; -ms-scroll-snap-type: y mandatory; scroll-snap-type: y mandatory; -webkit-overflow-scrolling: touch; } .headline { align-items: center; display: flex; font-family: 'Lexend Deca', sans-serif; font-weight: 700; font-size: calc(1rem + 15vmin); height: 100vh; justify-content: center; scroll-snap-align: start; } .headline:nth-child(1) { background-color: #f9ca24; } .headline:nth-child(2) { background-color: #3498db; } .headline:nth-child(3) { background-color: #ff7979; } .headline:nth-child(4) { background-color: #1abc9c; } .headline:nth-child(5) { background-color: #e74c3c; } .headline:nth-child(6) { background-color: #f8c291; } .char { -webkit-animation-name: var(--name); animation-name: var(--name); -webkit-animation-duration: var(--speed); animation-duration: var(--speed); -webkit-animation-delay: var(--delay); animation-delay: var(--delay); -webkit-animation-timing-function: var(--ease); animation-timing-function: var(--ease); -webkit-animation-direction: var(--direction, normal); animation-direction: var(--direction, normal); -webkit-animation-iteration-count: infinite; animation-iteration-count: infinite; display: inline-block; position: relative; -webkit-transform-origin: 50% 100%; transform-origin: 50% 100%; } .headline--fall .char { --name: fall; --speed: 600ms; --delay: calc(var(--char-index) * -0.05s); --ease: cubic-bezier(0.165, 0.44, 0.64, 1); } @-webkit-keyframes fall { 0% { -webkit-transform: rotateY(-25deg); transform: rotateY(-25deg); } 25% { -webkit-transform: translateY(2%) rotateY(25deg); transform: translateY(2%) rotateY(25deg); } 50% { -webkit-transform: rotateY(-25deg); transform: rotateY(-25deg); } 75% { -webkit-transform: translateY(4%) rotateY(25deg); transform: translateY(4%) rotateY(25deg); } 100% { -webkit-transform: rotateY(-25deg); transform: rotateY(-25deg); } } @keyframes fall { 0% { -webkit-transform: rotateY(-25deg); transform: rotateY(-25deg); } 25% { -webkit-transform: translateY(2%) rotateY(25deg); transform: translateY(2%) rotateY(25deg); } 50% { -webkit-transform: rotateY(-25deg); transform: rotateY(-25deg); } 75% { -webkit-transform: translateY(4%) rotateY(25deg); transform: translateY(4%) rotateY(25deg); } 100% { -webkit-transform: rotateY(-25deg); transform: rotateY(-25deg); } } .headline--flip .char { --name: flip; --speed: 4000ms; --delay: calc(var(--char-index) * 0.075s); --ease: linear; } @-webkit-keyframes flip { 5% { -webkit-transform: rotateX(1turn); transform: rotateX(1turn); } 10% { -webkit-transform: rotateX(2turn); transform: rotateX(2turn); } 20% { -webkit-transform: rotateX(3turn); transform: rotateX(3turn); } 40% { -webkit-transform: rotateX(4turn); transform: rotateX(4turn); } 70%, 100% { -webkit-transform: rotateX(5turn); transform: rotateX(5turn); } } @keyframes flip { 5% { -webkit-transform: rotateX(1turn); transform: rotateX(1turn); } 10% { -webkit-transform: rotateX(2turn); transform: rotateX(2turn); } 20% { -webkit-transform: rotateX(3turn); transform: rotateX(3turn); } 40% { -webkit-transform: rotateX(4turn); transform: rotateX(4turn); } 70%, 100% { -webkit-transform: rotateX(5turn); transform: rotateX(5turn); } } .headline--float .char { --name: float; --speed: 2200ms; --delay: calc(var(--char-index) * -0.5s); --ease: ease-in-out; --direction: alternate; } .headline--float .char:nth-child(2n) { --name: float-alt; } @-webkit-keyframes float { from { -webkit-transform: translate(2%, -10%) rotate(-1deg); transform: translate(2%, -10%) rotate(-1deg); } to { -webkit-transform: translate(-2%, 5%) rotate(3deg); transform: translate(-2%, 5%) rotate(3deg); } } @keyframes float { from { -webkit-transform: translate(2%, -10%) rotate(-1deg); transform: translate(2%, -10%) rotate(-1deg); } to { -webkit-transform: translate(-2%, 5%) rotate(3deg); transform: translate(-2%, 5%) rotate(3deg); } } @-webkit-keyframes float-alt { from { -webkit-transform: translate(0%, -5%) rotate(-1deg); transform: translate(0%, -5%) rotate(-1deg); } to { -webkit-transform: translate(2%, 10%) rotate(3deg); transform: translate(2%, 10%) rotate(3deg); } } @keyframes float-alt { from { -webkit-transform: translate(0%, -5%) rotate(-1deg); transform: translate(0%, -5%) rotate(-1deg); } to { -webkit-transform: translate(2%, 10%) rotate(3deg); transform: translate(2%, 10%) rotate(3deg); } } .headline--jog .char { --name: jog; --speed: 500ms; --delay: calc(var(--char-index) * -0.025s); --ease: linear; } @-webkit-keyframes jog { 0% { -webkit-transform: translate(0, 0) rotate(5deg); transform: translate(0, 0) rotate(5deg); } 25% { -webkit-transform: translate(5%, -5%) rotate(10deg); transform: translate(5%, -5%) rotate(10deg); } 50% { -webkit-transform: translate(5%, 0) rotate(15deg); transform: translate(5%, 0) rotate(15deg); } 75% { -webkit-transform: translate(10%, -5%) rotate(10deg); transform: translate(10%, -5%) rotate(10deg); } 100% { -webkit-transform: translate(0, 0) rotate(5deg); transform: translate(0, 0) rotate(5deg); } } @keyframes jog { 0% { -webkit-transform: translate(0, 0) rotate(5deg); transform: translate(0, 0) rotate(5deg); } 25% { -webkit-transform: translate(5%, -5%) rotate(10deg); transform: translate(5%, -5%) rotate(10deg); } 50% { -webkit-transform: translate(5%, 0) rotate(15deg); transform: translate(5%, 0) rotate(15deg); } 75% { -webkit-transform: translate(10%, -5%) rotate(10deg); transform: translate(10%, -5%) rotate(10deg); } 100% { -webkit-transform: translate(0, 0) rotate(5deg); transform: translate(0, 0) rotate(5deg); } } .headline--jump .char { --name: jump; --speed: 800ms; --delay: calc(var(--char-index) * 0.075s); --ease: cubic-bezier(0.165, 0.44, 0.64, 1); } @-webkit-keyframes jump { 20% { -webkit-transform: translateY(2%) scaleY(0.9); transform: translateY(2%) scaleY(0.9); } 40% { -webkit-transform: translateY(-100%) scaleY(1.2); transform: translateY(-100%) scaleY(1.2); } 50% { -webkit-transform: translateY(10%) scaleY(0.8); transform: translateY(10%) scaleY(0.8); } 70% { -webkit-transform: translateY(-5%) scaleY(1); transform: translateY(-5%) scaleY(1); } 80%, 100% { -webkit-transform: translateY(0) scaleY(1); transform: translateY(0) scaleY(1); } } @keyframes jump { 20% { -webkit-transform: translateY(2%) scaleY(0.9); transform: translateY(2%) scaleY(0.9); } 40% { -webkit-transform: translateY(-100%) scaleY(1.2); transform: translateY(-100%) scaleY(1.2); } 50% { -webkit-transform: translateY(10%) scaleY(0.8); transform: translateY(10%) scaleY(0.8); } 70% { -webkit-transform: translateY(-5%) scaleY(1); transform: translateY(-5%) scaleY(1); } 80%, 100% { -webkit-transform: translateY(0) scaleY(1); transform: translateY(0) scaleY(1); } } .headline--twirl .char { --name: twirl; --speed: 6000ms; --delay: calc(var(--char-index) * 0.025s); --ease: linear; } @-webkit-keyframes twirl { 2.5% { -webkit-transform: rotateY(1turn); transform: rotateY(1turn); } 5% { -webkit-transform: rotateY(2turn); transform: rotateY(2turn); } 10% { -webkit-transform: rotateY(3turn); transform: rotateY(3turn); } 20% { -webkit-transform: rotateY(4turn); transform: rotateY(4turn); } 40% { -webkit-transform: rotateY(5turn); transform: rotateY(5turn); } 70%, 100% { -webkit-transform: rotateY(6turn); transform: rotateY(6turn); } } @keyframes twirl { 2.5% { -webkit-transform: rotateY(1turn); transform: rotateY(1turn); } 5% { -webkit-transform: rotateY(2turn); transform: rotateY(2turn); } 10% { -webkit-transform: rotateY(3turn); transform: rotateY(3turn); } 20% { -webkit-transform: rotateY(4turn); transform: rotateY(4turn); } 40% { -webkit-transform: rotateY(5turn); transform: rotateY(5turn); } 70%, 100% { -webkit-transform: rotateY(6turn); transform: rotateY(6turn); } }
JavaScript
Splitting();
粒子
时间
文字
hover
canvas
3d
游戏
音乐
火焰
水波
轮播图
鼠标跟随
动画
css
加载动画
导航
菜单
按钮
滑块
tab
弹出层
统计图
svg
×
Close
在线代码下载提示
开通在线代码永久免费下载,需支付20jQ币
开通后,在线代码模块中所有代码可终身免费下!
您已开通在线代码永久免费下载,关闭提示框后,点下载代码可直接下载!
您已经开通过在线代码永久免费下载
对不起,您的jQ币不足!可通过发布资源 或
直接充值获取jQ币
取消
开通下载
<!doctype html> <html> <head> <meta charset="utf-8"> <title>文字动画-jq22.com</title> <script src="https://www.jq22.com/jquery/jquery-1.10.2.js"></script> <style>
</style> </head> <body>
<script>
</script>
</body> </html>
2012-2021 jQuery插件库版权所有
jquery插件
|
jq22工具库
|
网页技术
|
广告合作
|
在线反馈
|
版权声明
沪ICP备13043785号-1
浙公网安备 33041102000314号