web建站教程
  1. 首页
  2. vuejs
  3. js
  4. 好玩
  5. seo教程
  6. 前端知识
  7. 百度echarts
  8. 更多
    php入门
    nodejs
    mockjs
    reactjs
    mysql
    wordpress
    织梦cms
    帝国cms
    git教程
    IT知识
    模板大全
    休息站

css3有哪些新特性(简单介绍)

284 ℃
     

css3语法中引用了很多新的特性,下面web建站小编给大家简单介绍一下!

伪元素选择器

p::before{
  content: "→ ";
}

属性选择器

[title]{
  color: #f00;
}

线性渐变

.gradient {
  background: linear-gradient(to bottom, #ffffff, #000000);
}

径向渐变

.gradient {
  background: radial-gradient(circle at center, #ffffff, #000000);
}

过渡属性

.btn {
  color: black;
  transition: color 0.5s ease-out;
}
.btn:hover {
  color: white;
}

动画效果

.circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: blue;
  animation: circle-color 5s alternate infinite;
}
@keyframes circle-color {
  0% { background-color: blue; }
  50% { background-color: yellow; }
  100% { background-color: red; }
}

平移变形

.box {
  transform: translate(20px, 20px);
}

缩变形

.box {
  transform: scale(2);
}

旋转变形

.box {
  transform: rotate(45deg);
}

three.js绘制的八大行星运动效果

3D粒子波浪动画效果three.js

面试题:css3语法中新增哪些伪类?

css3中clip-path的属性语法介绍(裁剪范围计算)

css3语法中新增了哪些选择器?

标签: css3特性, css3语法, 伪元素选择器, 动画效果, 属性选择器, 径向渐变, 旋转变形, 线性渐变, 缩变形, 过渡属性

上面是“css3有哪些新特性(简单介绍)”的全面内容,想了解更多关于 前端知识 内容,请继续关注web建站教程。

当前网址:https://ipkd.cn/webs_4455.html

声明:本站提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请发送到邮箱:admin@ipkd.cn,我们会在看到邮件的第一时间内为您处理!

当前位置: 网站首页 > 前端知识
本文共计636个字,预计阅读时长5分钟
生活小工具,收录了80多款小工具
上一篇: 阿里巴巴普惠体3.0字体已经更新(最强中文字体)
下一篇: 跨平台划词翻译、截图翻译工具——Pot划词翻译
x 打工人ai神器