How to use html5 to achieve Post-it Special effects
This article mainly introduces how to use html5 to achieve note special effects, the article is very detailed, has a certain reference value, interested friends must read it!
The code is as follows:
Note
* {
Margin:0
Padding:0
}
Body {
Font-family:arial,sans-serif
Font-size:100%
Margin:3em
Background:#666
Color:#fff
}
H3,p {
Font-size:100%
Font-weight:normal
}
Ul,li {
List-style:none
}
Ul {
Overflow:hidden
Padding:3em
}
Ul li a {
Text-decoration:none
Color:#000
Background:#ffc
Display:block
Height:10em
Width:10em
Padding:1em
}
Ul li {
Margin:1em
Float:left
}
Ul li h3
{
Font-size: 140%
Font-weight: bold
Padding-bottom: 10px
}
Ul li p
{
Font-family: "Reenie Beanie", arial,sans-serif, Microsoft Yahei
Font-size: 110%
}
Ul li a
{
Text-decoration: none
Color: # 000
Background: # ffc
Display: block
Height: 10em
Width: 10em
Padding: 1em; / * Firefox * /
-moz-box-shadow: 5px 5px 7px rgba (33 Safari+Chrome 3); / * 3
-webkit-box-shadow: 5px 5px 7px rgba (33 Opera. 7); / *
Box-shadow: 5px 5px 7px rgba (33recover.7)
}
Ul li a {
-webkit-transform:rotate (- 6deg)
-o-transform:rotate (- 6deg)
-moz-transform:rotate (- 6deg)
}
Ul li:nth-child (even) a {
-o-transform:rotate (4deg)
-webkit-transform:rotate (4deg)
-moz-transform:rotate (4deg)
Position:relative
Top:5px
}
Ul li:nth-child (3n) a {
-o-transform:rotate (- 3deg)
-webkit-transform:rotate (- 3deg)
-moz-transform:rotate (- 3deg)
Position:relative
Top:-5px
}
Ul li:nth-child (5n) a {
-o-transform:rotate (5deg)
-webkit-transform:rotate (5deg)
-moz-transform:rotate (5deg)
Position:relative
Top:-10px
}
Ul li a:hover,ul li a:focus {
-moz-box-shadow:10px 10px 7px rgba (0pd0re0pl .7)
-webkit-box-shadow: 10px 10px 7px rgba (0pc0pl 0pr .7)
Box-shadow:10px 10px 7px rgba (0pr 0re0pl .7)
-webkit-transform: scale
-moz-transform: scale
-o-transform: scale
Position:relative
Z-index:5
}
Ul li:nth-child (even) a {
-o-transform:rotate (4deg)
-webkit-transform:rotate (4deg)
-moz-transform:rotate (4deg)
Position:relative
Top:5px
Background:#cfc
}
Ul li:nth-child (3n) a {
-o-transform:rotate (- 3deg)
-webkit-transform:rotate (- 3deg)
-moz-transform:rotate (- 3deg)
Position:relative
Top:-5px
Background:#ccf
}
Dudu:
How come there are no beautiful women to post recently? I must give you a headline recommendation, "endlessly recommended end!"
Uncle Tom:
A member of Team went to Microsoft to do SDE3, and got hire new member again.
Technical brother:
O2DS and I translated books are the same, I must turn faster than him, work overtime at night to translate, fast! Fast! Fast!
Artech:
There are really few posts on WCF. It seems that I have to post more posts for everyone to learn.
Jiri Gala:
Rights management, workflow management to the best of my ability, a person can only do so few things well
A martial arts master:
No more interviews for less than 25000 yuan, it's grandma.
The above is all the contents of the article "how to use html5 to achieve Post-it Special effects". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!