Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
Limited time
WEEKEND SALE EVENT
Black
Friday
shop now
21.11 - 27.11
15%
Electronics
See more
25 november
35%
everything
See more
WEEKEND SALE EVENT
WEEKEND SALE EVENT
ONE Day
special OFFER
get up to
50%
off
shop now
SUPER SALE ? BEST OFFER ? the full ? SUPER SALE ? SALE EVENT ?
10% 70% 35% 25% 55% 80% 15% 15% 80% 10% 70% 35% 25% 5% 80% 15% 5% 80% 15%
$ $$ $ $$$ $ $$ $$$ $$ $ $$ $ $ $ $$ $$$ $ $$ $ $ $$$ $$ $$ $ $ $$$ $$ $$ $ $ $$$ $ $ $$ $$ $$$ $ $ $$$ $$$
get up to
25%
shop now
70%
WEEKEND SALE EVENT
5%
the full
20%
SUPER SALE
10%
5% off
SALE
70%
SALE EVENT
ONE Day
! 10%
SALE
the full
70%! $$
Black Friday
70%
$$!
85% off
shop now
$
5% off
$
50% OFF
SALE
70%
BEST OFFER
the full
$ 30%!
Limited time
50%
off sale
special OFFER
css
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;800&display=swap"); :root { --color-black: black; --color-white: white; --color-yellow: yellow; --color-grey: #e8e8e8; --time: 4s; --time-s: 0.3s; --vw: 60vw; } @media (max-width: 768px) { :root { --size-height: 54px; } } * { box-sizing: border-box; } a { text-decoration: none; color: white; } html { font-size: 1vw; } @media (max-width: 768px) { html { font-size: 1.6vw; } } body { font-family: "Montserrat", sans-serif; min-height: 100vh; background-color: var(--color-grey); color: #fff; font-size: 3rem; line-height: 1; font-weight: 300; display: flex; justify-content: center; align-items: center; margin: 0; } .container { width: 100%; margin: 0 auto; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; } .box { cursor: pointer; position: relative; display: inline-block; box-sizing: border-box; width: 30vw; padding-bottom: 30vw; margin: 1vw; background-color: #7f72d2; background-color: var(--color-yellow); text-transform: uppercase; font-weight: 800; overflow: hidden; } @media (max-width: 768px) { .box { width: 46vw; padding-bottom: 46vw; } } .box:hover .box__btn { background-color: var(--color-yellow); color: var(--color-black); } .box:hover .box__background { animation-play-state: paused; } .box__title { transition: all var(--time-s); transform: scale(1) translateY(0); } .box__btn { line-height: 4vw; text-align: center; max-width: 80%; padding: 0 2vw; font-size: 1.8rem; margin-top: 1vw; transition: all var(--time-s); transform: scale(1); background-color: var(--color-black); color: var(--color-white); border: 1px solid var(--color-black); } .box__background { position: absolute; top: 0; left: 0; width: 100%; height: auto; } .box__content { position: absolute; top: 0; left: 0; right: 0; bottom: 0; padding: 2vw; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; align-content: center; } .box__col { width: 50%; height: 100%; display: flex; flex-direction: column; align-content: center; align-items: center; justify-content: center; } .box__text-line { position: absolute; font-size: 1.5rem; text-align: center; left: 3vw; right: 50%; } .box__text-line--top { top: 0; } .box__text-line--bottom { bottom: 0; } .box__text-line span { line-height: 3vw; padding: 0 1.5vw; background-color: var(--color-yellow); } .box__text-svg { transform-origin: 50% 50%; animation: rotate normal infinite calc(var(--time-s) * 30) linear; } .box__text-svg--reverse { animation: rotateReverse normal infinite calc(var(--time-s) * 50) linear; } .box--1, .box--4 { width: 60vw; } @media (max-width: 768px) { .box--1, .box--4 { width: 94vw; padding-bottom: 46vw; } } .box--1 { background-color: var(--color-white); color: var(--color-black); } .box--1 .box__background { outline: 3vw solid var(--color-yellow); outline-offset: -3vw; height: 100%; } .box--1 .box__background:before { content: ""; position: absolute; border: 1px solid var(--color-black); left: 1.5vw; right: 1.5vw; top: 1.5vw; bottom: 1.5vw; } .box--1 .box__content { padding: 3vw; } .box--1 .box__title { text-align: center; font-size: 5rem; } .box--1 .box__title span { display: block; font-size: 4rem; } .box--2 { font-size: 1.5rem; } .box--2 .box__background { top: -50%; left: -50%; width: 200%; height: auto; font-size: 24px; } .box--2 .box__content { color: var(--color-black); justify-content: center; align-items: center; align-content: center; flex-direction: column; } .box--2 .box__content span { display: block; font-size: 8rem; } .box--3 .box__background { top: -20%; left: -20%; width: 140%; height: auto; font-size: 30px; } .box--3 .box__content { font-size: 1.5rem; color: var(--color-white); justify-content: center; align-items: center; align-content: center; flex-direction: column; } .box--3 .box__content span { display: block; font-size: 6rem; } .box--3 .box__btn { background-color: var(--color-white); color: var(--color-black); } .box--4 { background-color: var(--color-black); text-shadow: -1px 0 0 var(--color-white), 0 -1px 0 var(--color-white), 1px 0 0 var(--color-white), 0 1px 0 var(--color-white); color: #000; } .box--4 span { letter-spacing: 0.3vw; animation: text var(--time) linear infinite running; } .box--4 span:nth-child(2n+1) { animation-delay: calc(var(--time) / 4); } .box--4 span:nth-child(3n+2) { animation-delay: calc(var(--time) / 2); } .box--4:hover { text-shadow: -1px 0 0 var(--color-grey), 0 -1px 0 var(--color-grey), 1px 0 0 var(--color-grey), 0 1px 0 var(--color-grey); } .box--4:hover span { animation: none; } .box--4:hover .box__title { z-index: 2; opacity: 1; text-shadow: -1px 0 0 var(--color-yellow), 0 -1px 0 var(--color-yellow), 1px 0 0 var(--color-yellow), 0 1px 0 var(--color-yellow); transform: scale(1.6); color: var(--color-yellow); } .box--4:hover .box__title--top { transform: scale(1.6) translateY(-1vw); } .card { position: relative; font-size: 1.5rem; color: var(--color-black); border: 1px solid var(--color-black); background-color: var(--color-grey); margin: 3%; height: 40%; width: 88%; display: flex; flex-direction: column; overflow: hidden; } .card__top { background-color: var(--color-black); color: var(--color-white); text-align: center; line-height: 1.2; } .card__title { display: flex; flex-direction: row; align-items: center; justify-content: center; flex: 1; transition: all var(--time-s); } .card__title span { padding-right: 4%; font-size: 3rem; } .card__btn { position: absolute; bottom: 0; left: 0; right: 0; line-height: 1.2; transition: all var(--time-s); background-color: var(--color-yellow); color: var(--color-black); border-top: 1px solid var(--color-black); text-align: center; transform: translateY(100%); } .card:hover .card__title { transform: translateY(-1vw); } .card:hover .card__btn { transform: translateY(0); } @keyframes text { 0%, 19% { color: var(--color-white); } 20%, 100% { color: var(--color-black); } } @keyframes rotate { to { transform: rotate(360deg); } } @keyframes rotateReverse { to { transform: rotate(-360deg); } }
JavaScript
粒子
时间
文字
hover
canvas
3d
游戏
音乐
火焰
水波
轮播图
鼠标跟随
动画
css
加载动画
导航
菜单
按钮
滑块
tab
弹出层
统计图
svg
×
Close
在线代码下载提示
开通在线代码永久免费下载,需支付20jQ币
开通后,在线代码模块中所有代码可终身免费下!
您已开通在线代码永久免费下载,关闭提示框后,点下载代码可直接下载!
您已经开通过在线代码永久免费下载
对不起,您的jQ币不足!可通过发布资源 或
直接充值获取jQ币
取消
开通下载
<!doctype html> <html> <head> <meta charset="utf-8"> <title>CSS促销动画-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号