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

石家庄有哪些公司可以做网站邢台信息港房屋出租

石家庄有哪些公司可以做网站,邢台信息港房屋出租,做门户网站源码,工信部网站备案系统怎么注册这是一个HTML文件#xff0c;主要包含了一些CSS样式和JavaScript代码#xff0c;用于创建一个动画效果。 在CSS部分#xff0c;定义了一些基本的样式#xff0c;包括页面的背景颜色、位置、大小等。特别的#xff0c;定义了两种球形元素#xff08;.ball_A 和 .ball_B主要包含了一些CSS样式和JavaScript代码用于创建一个动画效果。 在CSS部分定义了一些基本的样式包括页面的背景颜色、位置、大小等。特别的定义了两种球形元素.ball_A 和 .ball_B的样式以及它们的动画效果。 在JavaScript部分定义了一个名为Ball的类用于创建球形元素并控制它们的运动。Ball类有一些方法如random用于生成随机数render用于渲染球形元素update用于更新球形元素的位置。 在页面加载时会调用creatBall函数创建一系列的球形元素并将它们添加到页面中。然后调用render函数使这些球形元素按照预定的动画效果进行运动。 总的来说这个HTML文件的主要功能是创建一个动画效果其中包含一系列的球形元素在页面上进行运动。 !DOCTYPE html html langen headmeta charsetUTF-8titleTitle/titlestylebody,html{width: 100%;height: 100%;background: #222;overflow: hidden;position: relative;--m-x:51px;--m-y:51px}.playground{position: absolute;left: 50%;top: 50%;transform: translate(-50%,-50%);width: 600px;height: 300px;display: flex;justify-content: space-around;align-items: center;}.ball{width: 100px;height: 100px;border-radius: 50%;/*border: 1px solid #FFFFFF;*/position: relative;}.ball_A{/*border: 1px solid #a101f6;*/color: #FFFFFF;background: #a101f6;cursor: pointer;animation: scaleBall 0.5s forwards;}.ball_B{/*border: 1px solid #FFFFFF;*/color: #FFFFFF;}.ball_B1{border: none;width: 20px;height: 20px;background:#0d84ff;transform: scale(0);left: -20px;border-radius: 10px 30px 20px 20px / 15px 10px 25px 25px;animation: transBall 0.8s 1.2s forwards;}.text{display: inline-block;width: 100px;line-height: 100px;color: white;text-align: center;}keyframes scaleBall {0%{transform: scale(1.0);}100%{transform: scale(1.3);background: none;/*border: 1px solid #fff;*/}}.small-ball{width: 10px;height: 10px;background: #0d84ff;border-radius: 50%;position: absolute;/*animation: moveBall 0.5s forwards;*/}keyframes transBall {0%{transform: scale(0);border-radius: 5px 10px 15px 5px / 8px 7px 6px 15px;}50%{border-radius: 10px 30px 20px 20px / 15px 10px 25px 25px;}100%{transform: scale(6);border-radius: 50px}}/style /head body div classplaygrounddiv classball ball_Aspan classtextA/span/divdiv classball ball_Bspan classtextB/span/div /div div classplaygrounddiv classball styleopacity: 0span classtexta/span/divdiv classball ball_B1 !-- span classtextB/span--/div /div scriptconst playground document.querySelector(.playground)const ctx document.querySelector(.ball_A)const ctx_b document.querySelector(.ball_B)const play playground.getBoundingClientRect()const rect ctx.getBoundingClientRect()const rect_b ctx_b.getBoundingClientRect()const list []const pox {y: rect.height,x: rect.width,bx: rect_b.left - play.left,by: rect_b.top - play.top}class Ball{constructor(con,x,y) {this.x x;this.y y;this.width con.x;this.height con.y;this.ex this.random(-20,con.x)this.ey this.random(-20,con.y)this.dx this.random(-5, 6); // -5~5this.dy this.random(-5, 6); // -5~5this.dom }random(min,max){return Math.random()* (max - min) min;}render(index,step){const move keyframes moveBall_${index} {0%{top:${this.y}px;left: ${this.x}px;}50%{top:${this.ey}px;left: ${this.ex}px;}100%{top:${this.y}px;left: ${pox.bx - 100}px;}}const sheet document.styleSheets[0];sheet.insertRule(move, 0)const div document.createElement(div)div.className small-balldiv.style.transform scale(${Math.random() 0.5})div.style.opacity Math.random() 0.5div.style.animation moveBall_${index} ${step}s cubic-bezier(0.23, 1, 0.32, 1) forwardsctx.appendChild(div)this.dom div}}creatBall()function creatBall(){let step 2const x pox.x / 2const y pox.y / 2for (let i 0; i 50; i){step 0.01const ball new Ball(pox,x,y)ball.render(i,step)list.push(ball)}}/script /body /html
http://www.w-s-a.com/news/959604/

相关文章:

  • 如何建设学校的微网站广告推广是什么
  • 设计类专业哪个就业前景好网站建设seoppt
  • 济南建站公司网站网站友链查询源码
  • 校园失物招领网站建设涪陵网站建设公司
  • 怎么做盗号网站手机网站建设需要租用什么科目
  • 成品网站是什么意思沈阳seo推广
  • 购物网站后台流程图昆明官网seo技术
  • 创建自己网站全网零售管理系统
  • 江苏省建设厅网站建筑电工证wordpress收费插件大全
  • 北京中国建设银行招聘信息网站宁德蕉城住房和城乡建设部网站
  • 泉州做网站优化哪家好wordpress站点预览
  • 创建门户网站一页网站首页图如何做
  • 服装手机商城网站建设sns社交网站有哪些
  • 无锡工程建设招标网站怎么自己建设公司网站
  • 哪个网站可以学做咸菜安卓软件开发需要学什么软件
  • 自有网站建设的团队遂宁市建设局网站
  • 网站建设哪个好一些网站内容导出
  • 什么网站的页面做的比较好看网上做平面设计的网站
  • 网站建设单选网站建设学校培训学校
  • 可以做app的网站logo设计在线生成免费标小智
  • 网站变更备案做酒类网站
  • 网站必须要备案吗东莞市非凡网站建设
  • 太原建网站公司网站设计的流程是怎样的
  • 网站开发交易平台北京网站建设的价格低
  • 捷克注册公司网站搜索引擎广告推广
  • 网站的实用性青岛九二网络科技有限公司
  • 广东备案网站网站反链如何做
  • 做网站的实施过程企业建设H5响应式网站的5大好处6
  • ps制作个人网站首页景安搭建wordpress
  • 常德建设网站制作网站建设推广是什么工作