当前位置: 首页 > news >正文

电子科技 深圳 网站建设深圳注册公司推荐

电子科技 深圳 网站建设,深圳注册公司推荐,访问网站的过程,网站开发网站开发概述 动画栏是使用 HTML 和 CSS 创建的图形动画栏。动画栏的布局是使用 HTML 创建的#xff0c;栏的样式是使用 CSS 制作的。普通的条形图可以正常创建#xff0c;但我们必须创建带有动画的条形图#xff0c;因此我们将使用 CSS 过渡动画属性来使其具有动画效果。我们将构建…概述 动画栏是使用 HTML 和 CSS 创建的图形动画栏。动画栏的布局是使用 HTML 创建的栏的样式是使用 CSS 制作的。普通的条形图可以正常创建但我们必须创建带有动画的条形图因此我们将使用 CSS 过渡动画属性来使其具有动画效果。我们将构建一个与音乐动画条同步器相同的动画条。 算法 第 1 步 - 在文本编辑器中创建一个 HTML 文件并在其中添加 HTML 样板。 第 2 步 − 现在创建一个包含动画线条的父 div 容器。 div classanimatedLines/div 第 3 步 − 在父 div 内创建一个 div 子容器。创建至少七个“div”来制作一个好的动画栏并将类名作为线条添加到其中。 div classlines/div div classlines/div div classlines/div div classlines/div div classlines/div div classlines/div div classlines/div div classlines/div 第 4 步 − 现在创建一个 style.css 文件并将该文件链接到 HTML 文档。 link relstylesheet hrefstyle.css 第 5 步− 在 style.css 文件中设置 HTML 元素的样式。 .animatedLines {display: flex;justify-content: center;padding-top: 2rem; } .animatedLines .lines:nth-child(1) {animation-delay: .1s;background-color: rgb(141, 255, 88); }.animatedLines .lines:nth-child(2) {animation-delay: .2s;background-color: rgb(127, 253, 69); }.animatedLines .lines:nth-child(3) {animation-delay: .3s;background-color: rgb(18, 49, 6); }.animatedLines .lines:nth-child(4) {animation-delay: .4s;background-color: rgb(18, 49, 6); }.animatedLines .lines:nth-child(5) {animation-delay: .3s;background-color: rgb(18, 49, 6); }.animatedLines .lines:nth-child(6) {animation-delay: .2s;background-color: rgb(127, 253, 69); }.animatedLines .lines:nth-child(7) {animation-delay: .1s;background-color: rgb(102, 228, 43); } 第 6 步 − 通过定位子“div”容器的类名来制作这些线条的动画。 .animatedLines .lines {list-style: none;width: 5px;height: 10px;margin: 0 4px;animation: animatedBars .5s infinite alternate; }keyframes animatedBars {0% {transform: scaleY(1);}25% {transform: scaleY(1);}50% {transform: scaleY(1);}100% {transform: scaleY(6);}} 第 7 步− 动画条已成功创建。 示例 在此示例中我们创建了一个动画栏。为此我们创建了两个文件index.html 和 style.css。索引文件包含页面的布局style.css 文件包含页面的样式部分。 html headtitleanimated bars/titlelink relstylesheet hrefstyle.cssstyle.animatedLines {display: flex;justify-content: center;padding-top: 2rem;}.animatedLines .lines:nth-child(1) {animation-delay: .1s;background-color: rgb(141, 255, 88);}.animatedLines .lines:nth-child(2) {animation-delay: .2s;background-color: rgb(127, 253, 69);}.animatedLines .lines:nth-child(3) {animation-delay: .3s;background-color: rgb(18, 49, 6);}.animatedLines .lines:nth-child(4) {animation-delay: .4s;background-color: rgb(18, 49, 6);}.animatedLines .lines:nth-child(5) {animation-delay: .3s;background-color: rgb(18, 49, 6);}.animatedLines .lines:nth-child(6) {animation-delay: .2s;background-color: rgb(127, 253, 69);}.animatedLines .lines:nth-child(7) {animation-delay: .1s;background-color: rgb(102, 228, 43);}.animatedLines .lines {list-style: none;width: 5px;height: 10px;margin: 0 4px;animation: animatedBars .5s infinite alternate;}keyframes animatedBars {0% {transform: scaleY(1);}25% {transform: scaleY(1);}50% {transform: scaleY(1);}100% {transform: scaleY(6);}}/style /head bodyh1 styletext-align: center;text-decoration: underline;color: green;tutorialspoint.com/h1div classanimatedLinesdiv classlines/divdiv classlines/divdiv classlines/divdiv classlines/divdiv classlines/divdiv classlines/divdiv classlines/divdiv classlines/div/div /body /html 下面给定的图像显示了上面示例的输出它显示了一些您可以在浏览器上实时看到的动画线。当用户将此功能加载到浏览器中时它会显示一条看起来更有吸引力的动画线条。 结论 动画栏的这一功能可以作为图形界面在语音合成器中使用。您还可以在许多应用程序中看到此组件例如录音机和 dj 节拍同步器。上面例子中的主要部分是计时我们设置了随着条形尺寸的增加而动画的计时。
http://www.pierceye.com/news/358523/

相关文章:

  • 网络媒体设计是做什么的西安网站优化公司
  • 有项目去哪里找投资人河南网站优化排名
  • 灯塔建设网站网上做流量对网站有什么影响
  • 网站模板 黑色建设网站安全措施
  • 临沂企业网站建设珠海建设网站的公司哪家好
  • 中国网站建设公司排行榜网站建设精美模板
  • 国家对于学校网站建设深圳网站建设公司网络服务
  • 承德建站公司福田庆三整鼻子好吗
  • 域名和网站关联seo优化是指
  • 爱站网官网关键词周口网站关键词优化
  • vps网站管理器阿里云如何做网站
  • 网站是什么意思例如营销型网站文案怎么做
  • 五莲县网站建设wordpress去掉链接中的吗
  • 贡井区建设局网站建网是什么
  • 高端大气网站模板南京网站制作西安
  • wordpress站点标题和副标题网站内容要突出什么原因
  • 网站建设公司排行杭州wordpress站外链接跳转页面
  • 哪个网站可以做行程攻略哈尔滨市建设工程招标网
  • django网站开发实例望城建设局网站
  • 住房和城乡建设网站方案网页界面设计的网络系统有哪些
  • 自己做的网站怎么设置文件下载商城app搭建
  • 好看的网站分享查域名注册详细信息查询
  • 中山网站建设招聘宜宾seo快速排名
  • 网站制作 福宁网络有限公司单页网站seo优化
  • 增城做网站站长之家域名查询大全
  • 个人网站建设报价做游戏出租的网站好
  • 珠海网站建设公司哪家好织梦网站怎么做下载地址
  • 西安商城网站建设公司宁夏住宅建设发展公司网站
  • 网站建设实现用户登录济南网站建设找老兵
  • 做网站还挣钱吗成都网站设计策划免费