html5如何展开简介,html5简介及新增功能介绍

baf0ca02f27ecfa43d3236ba432f03b8.png

4872fde7d156d401167ad1539c5ea913.png

b1ff3c01430be8b724f5780aa36955a8.png

127d8df674fbe46dbb4c045c4465e70f.png

1ceab51dbb7a14c10d28942f35f8754a.png

e7f0b2fc137bbbd27fc74842a4696ad1.png

5b814264970d45bdf8aa7fd66f7ca26c.png

audio

您的浏览器太low了

您的浏览器太low

  1. 邮箱:
  2. 网址:
  3. 日期:
  4. 数量:
  5. 日期:
  6. 手机号:
  7. 搜索:
  8. 颜色:
  9. 不能为空:
  10. 提示为本:
  11. 自动获得鼠标焦点:

d18b885aa452fc700bea51733d92c684.png

0cd1ca45f5794a211db272032312b663.png

css3

ul li:nth-child(odd) {

background-color: cornflowerblue;

}

ul {

display: inline-grid;

width: 200px;

margin-left: -39px;

list-style: none;

text-align: center;

}

div::before {

display: inline-block;

content: "我想";

width: 100px;

height: 100px;

background-color: pink;

}

div::after {

display: inline-block;

content: "飞的更高";

width: 100px;

height: 100px;

background-color: pink;

}

  • 1
  • 4
  • 4
  • 4
  • 4

4cbe4fe4d92e423e9ccecd89aeb39cd9.png

2fd685363bc83ec2a6eb0af66564a87e.png

edf2295d134247b8934a84c0f1c2e84c.png

00cb32d641697db466a6b93e3e9d4465.png

57e0d8233b225699f888ae2f582ebc81.png

786c31f84e516fd1dae817a149e6eabe.png

d7f7bff08d5024e6f2d744dea0426091.png

1a616ac51aeb9a05cf167d65231221c1.png

动画

/*from 和 to 等价于 0% 和 100%*/

/*@keyframes move {*/

/*0%{*/

/*transform:translateX(0px);*/

/*}*/

/*100%{*/

/*transform:translateX(1000px);*/

/*}*/

/*}*/

.bowen {

position: fixed;

top: 50%;

left: 50%;

width: 200px;

height: 200px;

transform: translate(-50%, -50%);

background-color: pink;

}

.bowen div[class^="dotted"] {

position: absolute;

top: 50%;

left: 50%;

width: 8px;

height: 8px;

transform: translate(-50%, -50%);

background-color: deepskyblue;

border-radius: 50%;

}

@keyframes pulse {

0% {

}

70% {

width: 100px;

height: 100px;

opacity: 1;

}

100% {

width: 100px;

height: 100px;

opacity: 0;

}

}

.bowen div.dotted2,

.bowen div.dotted3,

.bowen div.dotted4 {

background-color: transparent;

box-shadow: 0 0 8px deepskyblue;

animation: pulse 1.2s linear infinite forwards;

}

.bowen div.dotted2 {

animation-delay: 0.4s;

}

.bowen div.dotted3 {

animation-delay: 0.8s;

}

6d21b5f53b1ba7ea960e0b2bb9c3998e.png

1c45393e2c1634504e7746a1a48ab9a8.png

9b1493021d7bbe06698ad5ecf98fb19c.png

3D

body {

perspective: 500px;

}

.box {

position: relative;

width: 200px;

height: 200px;

margin: 0 auto;

transform-style: preserve-3d;

transition: all .3s;

}

.box div {

position: absolute;

top: 0;

left: 0;

width: 100%;

height: 100%;

background-color: cornflowerblue;

}

.box div:last-child {

background-color: aliceblue;

transform: rotateX(60deg);

}

.box:hover {

transform: rotate3D(0, 1, 0, 60deg);

}

ca6f77d22c315bb1f51d31b4dfc5b16c.png

导航栏

li {

float: left;

padding: 0 10px;

list-style: none;

perspective: 500px;

}

.box {

position: relative;

width: 200px;

height: 50px;

transform-style: preserve-3d;

transition: all .5s;

}

.box div {

position: absolute;

top: 0;

left: 0;

width: 100%;

height: 100%;

background-color: pink;

text-align: center;

line-height: 50px;

}

.box div:nth-child(1) {

transform: translateZ(25px);

}

.box div:nth-child(2) {

background-color: purple;

/*必须先移动后旋转*/

transform: translateY(25px) rotateX(-90deg);

}

.box:hover {

transform: rotateX(90deg);

}

  • 好好学习
    天天向上
  • 好好学习
    天天向上
  • 好好学习
    天天向上
  • 好好学习
    天天向上

47e26484f0d5883c84d5e35a50661568.png

旋转木马

section {

position: fixed;

top: 50%;

left: 50%;

width: 300px;

height: 200px;

transform: translate(-50%, -50%);

perspective: 2500px;

}

section div.box {

position: relative;

transform-style: preserve-3d;

animation: move 15s linear infinite;

background: url("img/4.jpg") no-repeat;

background-size: 300px 200px;

}

div {

position: absolute;

top: 0;

left: 0;

width: 100%;

height: 100%;

}

div:nth-child(1) {

background: url("img/3.jpg") no-repeat;

background-size: 300px 200px;

transform: rotateY(0) translateZ(400px);

}

div:nth-child(2) {

background: url("img/9.jpg") no-repeat;

background-size: 300px 200px;

transform: rotateY(60deg) translateZ(400px);

}

div:nth-child(3) {

background: url("img/5.jpg") no-repeat;

background-size: 300px 200px;

transform: rotateY(120deg) translateZ(400px);

}

div:nth-child(4) {

background: url("img/6.jpg") no-repeat;

background-size: 300px 200px;

transform: rotateY(180deg) translateZ(400px);

}

div:nth-child(5) {

background: url("img/7.jpg") no-repeat;

background-size: 300px 200px;

transform: rotateY(240deg) translateZ(400px);

}

div:nth-child(6) {

background: url("img/8.jpg") no-repeat;

background-size: 300px 200px;

transform: rotateY(300deg) translateZ(400px);

}

@keyframes move {

0% {

transform: rotateY(0);

}

100% {

transform: rotateY(360deg);

}

}

.box:hover{

animation-play-state: paused;

}

fdc69af92ad73d06e102e1be7a8551bb.png

b55c3cbb1f15bc724304b00db623a008.png

总结

到此这篇关于html5简介及新增功能介绍的文章就介绍到这了,更多相关html5简介新增功能内容请搜索脚本之家以前的文章或继续浏览下面的相关文章,希望大家以后多多支持脚本之家!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值