您现在的位置是:网站首页> 编程资料编程资料
CSS3实现三角形不断放大效果纯CSS3+DIV实现小三角形边框效果的示例代码详解css如何利用 :before :after 写小三角形CSS3 画基本图形,圆形、椭圆形、三角形等用CSS3绘制三角形的简单方法布局和排版教程 纯css3实现图片三角形排列使用css创建三角形 使用CSS3创建3d四面体原理及代码(html5实践)
2021-09-02
992人已围观
简介 这篇文章主要介绍了CSS3实现三角形不断放大效果,本文通过实例代码给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友可以参考下
一、CSS3三角形不断放大特效
11.1 图片预览

11.2 index.html代码
CSS3三角形不断放大特效
11.3 style.css代码
html { height: 100%; } body { padding: 0; margin: 0; height: 100%; background: #642B73; /* fallback for old browsers */ /* Chrome 10-25, Safari 5.1-6 */ background: linear-gradient(to left, #C6426E, #642B73); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */ } .wrapper { overflow: hidden; position: absolute; top: 0; left: 0; width: 100%; height: 100%; } .triangle-canvas { position: absolute; left: 50%; top: 50%; width: 100%; height: 100%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); } .triangle { fill: none; stroke: #fff; stroke-width: 15; -webkit-transform-origin: center center; transform-origin: center center; -webkit-animation: triangle-animation 10s linear infinite; animation: triangle-animation 10s linear infinite; } .triangle-1 { -webkit-animation-delay: 0s; animation-delay: 0s; } .triangle-2 { -webkit-animation-delay: -0.5s; animation-delay: -0.5s; } .triangle-3 { -webkit-animation-delay: -1s; animation-delay: -1s; } .triangle-4 { -webkit-animation-delay: -1.5s; animation-delay: -1.5s; } .triangle-5 { -webkit-animation-delay: -2s; animation-delay: -2s; } .triangle-6 { -webkit-animation-delay: -2.5s; animation-delay: -2.5s; } .triangle-7 { -webkit-animation-delay: -3s; animation-delay: -3s; } .triangle-8 { -webkit-animation-delay: -3.5s; animation-delay: -3.5s; } .triangle-9 { -webkit-animation-delay: -4s; animation-delay: -4s; } .triangle-10 { -webkit-animation-delay: -4.5s; animation-delay: -4.5s; } .triangle-11 { -webkit-animation-delay: -5s; animation-delay: -5s; } .triangle-12 { -webkit-animation-delay: -5.5s; animation-delay: -5.5s; } .triangle-13 { -webkit-animation-delay: -6s; animation-delay: -6s; } .triangle-14 { -webkit-animation-delay: -6.5s; animation-delay: -6.5s; } .triangle-15 { -webkit-animation-delay: -7s; animation-delay: -7s; } .triangle-16 { -webkit-animation-delay: -7.5s; animation-delay: -7.5s; } .triangle-17 { -webkit-animation-delay: -8s; animation-delay: -8s; } .triangle-18 { -webkit-animation-delay: -8.5s; animation-delay: -8.5s; } .triangle-19 { -webkit-animation-delay: -9s; animation-delay: -9s; } .triangle-20 { -webkit-animation-delay: -9.5s; animation-delay: -9.5s; } @-webkit-keyframes triangle-animation { 0% { -webkit-transform: scale(0) rotate(0deg); transform: scale(0) rotate(0deg); opacity: 1; } 100% { -webkit-transform: scale(3) rotate(45deg); transform: scale(3) rotate(45deg); opacity: 0; } } @keyframes triangle-animation { 0% { -webkit-transform: scale(0) rotate(0deg); transform: scale(0) rotate(0deg); opacity: 1; } 100% { -webkit-transform: scale(3) rotate(45deg); transform: scale(3) rotate(45deg); opacity: 0; } }到此这篇关于CSS3实现三角形不断放大效果的文章就介绍到这了,更多相关css三角形放大特效内容请搜索以前的文章或继续浏览下面的相关文章,希望大家以后多多支持!
相关内容
- css3实现背景图片颜色修改的多种方式css3实现背景图片半透明内容不透明的方法示例css3制作的背景渐变动画效果CSS3实现模糊背景的三种效果示例CSS3 菱形拼图实现只旋转div 背景图片不旋转功能CSS3只让背景图片旋转180度的实现示例基于css3制作的圆形透明画中画视频播放特效JS+CSS3文章内容背景黑白切换特效代码css3实现简单的白云飘动背景特效CSS3 实现的动态星空背景
- CSS3 制作的悬停缩放特效基于Jquery和Css3代码制作可以缩放的搜索框一款jQuery+CSS3实现的动态缩放焦点图代码CSS3鼠标悬浮过渡缩放效果
- CSS3 制作的书本翻页特效css3实现书本翻页效果的示例代码css3鼠标悬停图片3D翻页显示文字描述特效纯CSS3实现杂志翻页动画特效纯CSS3实现的书籍自动翻页动画效果源码js+css3实现的翻页动画效果数字时钟源码纯css3实现的书本翻页动画特效源码CSS3实现的答题卡翻页切换特效源码jQuery和CSS3实现弹性过渡全屏翻页特效源码jQuery+CSS3实现的全屏垂直翻页特效源码一款很酷的CSS3翻页时钟动画特效源码
- 浅谈移动端中的视口(viewport)的具体使用web容器如何自适应视口大小
- 老生常谈 使用 CSS 实现三角形的技巧(多种方法)
- CSS3 制作的彩虹按钮样式CSS3点击按钮圆形进度打钩效果的实现代码基于js+css3文章列表喜欢点赞按钮特效源码一套CSS3的新拟物风格UI元素(复选框/按钮/菜单/搜索框/时钟)CSS3实现的登录框表单浮动占位符和提交按钮发光特效源码CSS3实现发光按钮登录表单特效代码CSS3.0实现霓虹灯按钮动画特效的示例代码CSS3自定义单选按钮美化ui特效代码CSS3中animation实现流光按钮效果CSS3分享图标按钮动画特效代码css3悬停按钮-CSS3鼠标悬停按钮阴影缩放特效代码
- CSS中em的正确打开方式详解解决ElementUI自定义CSS样式不生效的问题CSS3中的弹性布局em运用入门详解 1em等于多少像素CSS伪类:empty让我眼前一亮(实例代码)CSS使用BEM命名规范实践css 命名:BEM, scoped css, css modules 与 css-in-js详解CSS规范BEM CSS和OOCSS的示例代码详解
- CSS完成视差滚动效果
- CSS3实现的3D隧道效果用CSS3画一个爱心css3 实现文字闪烁效果的三种方式示例代码六种css3实现的边框过渡效果CSS3 实现的动态星空背景jQuery+CSS3制作卡片式步骤操作ui交互特效代码基于CSS3画一个iPhoneCSS3 实现NES游戏机的示例代码基于CSS3+Bootstrap实现的侧边栏后台菜单特效源码CSS3实现的卡片式登录注册表单特效源码CSS3鼠标悬浮过渡缩放效果
- 用CSS3画一个爱心基于CSS3画一个iPhonecss3爱心点赞图标动画特效代码HTML5 + CSS3 实现的爱心校车/班车/公交车动画效果源码CSS3实现的粉色心形花瓣飘舞背景特效源码CSS3实现的爱心熊宝宝动画效果源码CSS3实现献爱心的小狗动画效果源码CSS3实现的彩色粗线条爱心形状加载动画特效源码纯CSS3实现几何爱心图形特效源码jQuery+css3实现飘落的爱心雨动画效果源码CSS3 SVG实现的点击爱心点赞按钮散开动画特效源码
