In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article shows you how to achieve css card image flip effect, the content is concise and easy to understand, absolutely can make your eyes bright, through the detailed introduction of this article, I hope you can get something.
Css flip image specific code example:
HTML code section
Css picture flipping example
Css code section:
* {padding:0; margin:0;} body {background-color:rgb (244244244);} .wrap {- webkit-perspective:400;-moz-perspective:400; float:left; width:220px; margin-right:20px;} .image {width:100%; height:200px;-webkit-transform-style:preserve-3d -webkit-transition:1.5s;-moz-transform-style:preserve-3d;-moz-transition:1.5s;} img {width:220px; height:200px;} .wrap: hover.image {- webkit-transform:rotateY (180deg);-moz-transform:rotateY (180deg);} .display {position:absolute;-webkit-backface-visibility:hidden -moz-backface-visibility:hidden;} .displayh4 {color:white; text-align:center;} .back {- webkit-transform:rotateY (180deg);-moz-transform:rotateY (180deg); background:-webkit-gradient (linear,lefttop,leftbottom,from (# fdbb5a), to (# db5726)); background:-moz-linear-gradient (top,#fdbb5a,#db5726); width:220px Height:200px; line-height:200px;}
The css card flip effect allows you to see the pros and cons of a card.
Note: the perspective attribute defines the distance of the 3D element from the view, in pixels. This attribute allows you to change the 3D element to see the view of the 3D element.
When you define a perspective attribute for an element, its child elements get perspective, not the element itself. The perspective attribute affects only 3D conversion elements.
Possible values are:
The distance of the number element from the view, in pixels.
None default value. Same as 0. Do not set perspective.
What is the full name of css? the full name of css is Cascading Style Sheets (cascading style sheets), a computer language used to express file styles such as HTML or XML. CSS can not only modify the web page statically, but also format the elements of the web page dynamically with various scripting languages.
The above content is how to achieve the card image flipping effect of css. Have you learned the knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are 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.