In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to use pure CSS3 transform to achieve heartbeat effect, the article is very detailed, has a certain reference value, interested friends must read it!
Heart
Send a love to show that I am attracted to you, using pure CSS3 transform implementation:
Css part
Html,body {height:100%;} body {margin:0;padding:0;background:#ffa5a5; display: flex; justify-content: center; align-items: center;}. Chest {width:500px;height:500px; position:relative; display: flex; justify-content: center; align-items: center;}. Heart {position:absolute; z indexlange 2; background:linear-gradient (- 90degmeme F50A450% mind5093c 40%) Animation:beat 0.7s ease 0s infinite normal;}. Heart.center {background:linear-gradient (- 45 degmenade B80734% 225deg d5093c 40%);}. Heart.top {z infinite normal; index3;}. Sided {top:100px; width:220px; height:220px; border-radius:110px;}. Center {width:210px; height:210px; bottom:100px; left:145px; transform:rotateZ (225deg);}. Left {left:62px } .right {right:62px;} .title {z-index: 999; text-shadow: 5px 5px 5px # ff7f00;} @ keyframes beat {0% {transform:scale (1) rotate (225deg); box-shadow:0 0 40px # d5093c;} 50% {transform:scale (1.2) rotate (225deg); box-shadow:0 0 70px # d5093c;} 100% {transform:scale (1) rotate (225deg); box-shadow:0 0 40px # d5093c;}}
Html part
W3Cschool W3Cschool above is all the content of this article entitled "how to use pure CSS3 transform to achieve heartbeat effect". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.