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

企业的oa管理系统优化网站排名的方法

企业的oa管理系统,优化网站排名的方法,wordpress网站关键词,vi设计公司北京前言 「作者主页」:雪碧有白泡泡 「个人网站」:雪碧的个人网站 「推荐专栏」: ★java一站式服务 ★ ★ React从入门到精通★ ★前端炫酷代码分享 ★ ★ 从0到英雄,vue成神之路★ ★ uniapp-从构建到提升★ ★ 从0到英雄&#xff…

前言

在这里插入图片描述
「作者主页」:雪碧有白泡泡
「个人网站」:雪碧的个人网站
「推荐专栏」

java一站式服务
React从入门到精通
前端炫酷代码分享
★ 从0到英雄,vue成神之路★
uniapp-从构建到提升
从0到英雄,vue成神之路
解决算法,一个专栏就够了
架构咱们从0说
★ 数据流通的精妙之道★
★后端进阶之路★

请添加图片描述

文章目录

  • 前言
  • 先上效果
      • 点击运行后即可有如下效果,拖动鼠标即可
    • 代码
    • 鼠标监听并缩小爱心大小
  • 再分享一个html爱心+弹幕效果
      • 效果如下

先上效果


在这里插入图片描述
这里可以直接 看查源码内容刷新,最后一个是 放大跳转网页

点击运行后即可有如下效果,拖动鼠标即可

在这里插入图片描述

代码

要将这个爱心改为3D效果,需要进行以下几个步骤:

  1. 创建一个可以旋转的3D场景。
  2. 将爱心的图案转换成3D模型。
  3. 在场景中添加3D模型,并旋转。
  4. 渲染场景,使其呈现出3D效果。

需要使用的工具和技术包括:HTML5 Canvas、Three.js(一个JavaScript库用于创建和显示3D图形)和一些基本的3D数学知识。

实现了一个简单的3D爱心效果:

<!DOCTYPE html>
<html><head><meta charset="utf-8" /><title>💗</title><style>html,body {height: 100%;padding: 0;margin: 0;background: #000;overflow: hidden;}#pinkboard {position: absolute;top: 0;left: 0;}</style></head><body><canvas id="pinkboard"></canvas><script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/110/three.min.js"></script><script>function createHeart() {const heartShape = new THREE.Shape();const x = -2;const y = -1;heartShape.moveTo(x + 2.5, y + 2.5);heartShape.bezierCurveTo(x + 2.5, y + 2.5, x + 2, y, x, y);heartShape.bezierCurveTo(x - 3, y, x - 3, y + 3.5, x - 3, y + 3.5);heartShape.bezierCurveTo(x - 3,y + 5.5,x - 1.6,y + 7.7,x + 2.5,y + 9.5);heartShape.bezierCurveTo(x + 6.6,y + 7.7,x + 9,y + 4.5,x + 9,y + 3.5);heartShape.bezierCurveTo(x + 9, y + 3.5, x + 9, y, x + 6.5, y);heartShape.bezierCurveTo(x + 4, y, x + 2.5, y + 2.5, x + 2.5, y + 2.5);const geometry = new THREE.ShapeGeometry(heartShape);const material = new THREE.MeshBasicMaterial({ color: "#ea80b0" });const heart = new THREE.Mesh(geometry, material);heart.scale.set(10, 10, 10);return heart;}function createScene() {const scene = new THREE.Scene();const camera = new THREE.PerspectiveCamera(75,window.innerWidth / window.innerHeight,0.1,1000);camera.position.z = 50;const renderer = new THREE.WebGLRenderer({ canvas: pinkboard });renderer.setSize(window.innerWidth, window.innerHeight);const heart = createHeart();scene.add(heart);function animate() {requestAnimationFrame(animate);heart.rotation.x += 0.01;heart.rotation.y += 0.01;renderer.render(scene, camera);}animate();}createScene();</script></body>
</html>

在这个示例中,我们使用了Three.js来创建3D场景,并将爱心的图案转换成了一个简单的3D模型。我们在场景中添加了这个模型,并在每一帧中旋转它。最后使用renderer对象将场景渲染到Canvas上。

请注意,在上述代码中,添加了一个新的Canvas元素<canvas id="pinkboard"></canvas>作为Three.js的渲染目标。

鼠标监听并缩小爱心大小

要实现让这个爱心随着滑动转动的效果,你可以通过监听鼠标移动事件来改变爱心的旋转角度:

<!DOCTYPE html>
<html><head><meta charset="utf-8" /><title>💗</title><style>html,body {height: 100%;padding: 0;margin: 0;background: #000;overflow: hidden;}#pinkboard {position: absolute;top: 0;left: 0;}</style></head><body><canvas id="pinkboard"></canvas><script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/110/three.min.js"></script><script>let mouseX = 0;let mouseY = 0;document.addEventListener("mousemove", onDocumentMouseMove, false);function onDocumentMouseMove(event) {mouseX = (event.clientX - window.innerWidth / 2) / 10;mouseY = (event.clientY - window.innerHeight / 2) / 10;}function createHeart() {const heartShape = new THREE.Shape();const x = -2;const y = -1;heartShape.moveTo(x + 2.5, y + 2.5);heartShape.bezierCurveTo(x + 2.5, y + 2.5, x + 2, y, x, y);heartShape.bezierCurveTo(x - 3, y, x - 3, y + 3.5, x - 3, y + 3.5);heartShape.bezierCurveTo(x - 3,y + 5.5,x - 1.6,y + 7.7,x + 2.5,y + 9.5);heartShape.bezierCurveTo(x + 6.6,y + 7.7,x + 9,y + 4.5,x + 9,y + 3.5);heartShape.bezierCurveTo(x + 9, y + 3.5, x + 9, y, x + 6.5, y);heartShape.bezierCurveTo(x + 4, y, x + 2.5, y + 2.5, x + 2.5, y + 2.5);const geometry = new THREE.ShapeGeometry(heartShape);const material = new THREE.MeshBasicMaterial({ color: "#ea80b0" });const heart = new THREE.Mesh(geometry, material);heart.scale.set(3, 3, 3);return heart;}function createScene() {const scene = new THREE.Scene();const camera = new THREE.PerspectiveCamera(75,window.innerWidth / window.innerHeight,0.1,1000);camera.position.z = 50;const renderer = new THREE.WebGLRenderer({ canvas: pinkboard });renderer.setSize(window.innerWidth, window.innerHeight);const heart = createHeart();scene.add(heart);function animate() {requestAnimationFrame(animate);heart.rotation.x = mouseY;heart.rotation.y = mouseX;renderer.render(scene, camera);}animate();}createScene();</script></body>
</html>

在这个修改后的代码中,我们使用document.addEventListener("mousemove", onDocumentMouseMove, false);来监听鼠标的移动事件,并将鼠标在窗口中的坐标存储在mouseXmouseY中。然后在animate函数中,将mouseX作为爱心的y轴旋转角度,将mouseY作为爱心的x轴旋转角度来实现随鼠标滑动转动的效果。

再分享一个html爱心+弹幕效果

在这里插入图片描述
这里可以直接看查源码内容刷新,最后一个是放大跳转网页

效果如下

在这里插入图片描述


文章转载自:
http://commentator.nLcw.cn
http://reechy.nLcw.cn
http://ethnics.nLcw.cn
http://claw.nLcw.cn
http://secondarily.nLcw.cn
http://magnamycin.nLcw.cn
http://lambda.nLcw.cn
http://nonpolluting.nLcw.cn
http://calathus.nLcw.cn
http://alike.nLcw.cn
http://psocid.nLcw.cn
http://roofline.nLcw.cn
http://semichorus.nLcw.cn
http://tagalog.nLcw.cn
http://hoodwink.nLcw.cn
http://demography.nLcw.cn
http://towhee.nLcw.cn
http://nonsulphide.nLcw.cn
http://saprobiology.nLcw.cn
http://manado.nLcw.cn
http://felicia.nLcw.cn
http://whisper.nLcw.cn
http://frumpy.nLcw.cn
http://confiture.nLcw.cn
http://cephalalgia.nLcw.cn
http://parabomb.nLcw.cn
http://pigeonwing.nLcw.cn
http://fatuous.nLcw.cn
http://siceliot.nLcw.cn
http://lated.nLcw.cn
http://aristotelian.nLcw.cn
http://cliffsman.nLcw.cn
http://wrath.nLcw.cn
http://exordia.nLcw.cn
http://adnoun.nLcw.cn
http://stentor.nLcw.cn
http://unreligious.nLcw.cn
http://multivibrator.nLcw.cn
http://smashing.nLcw.cn
http://disenfranchise.nLcw.cn
http://shoreside.nLcw.cn
http://rami.nLcw.cn
http://townie.nLcw.cn
http://advection.nLcw.cn
http://nonperiodic.nLcw.cn
http://primigravida.nLcw.cn
http://atmospheric.nLcw.cn
http://guanethidine.nLcw.cn
http://engorge.nLcw.cn
http://hippocampus.nLcw.cn
http://pleb.nLcw.cn
http://tsarism.nLcw.cn
http://daruma.nLcw.cn
http://drencher.nLcw.cn
http://terrorist.nLcw.cn
http://misanthrope.nLcw.cn
http://testaceous.nLcw.cn
http://levantinism.nLcw.cn
http://moorish.nLcw.cn
http://forespent.nLcw.cn
http://spitz.nLcw.cn
http://warder.nLcw.cn
http://herakleion.nLcw.cn
http://lampshell.nLcw.cn
http://crybaby.nLcw.cn
http://visitant.nLcw.cn
http://vaunty.nLcw.cn
http://capitate.nLcw.cn
http://alkalify.nLcw.cn
http://cargoboat.nLcw.cn
http://roadlessness.nLcw.cn
http://microbalance.nLcw.cn
http://phosgene.nLcw.cn
http://rictus.nLcw.cn
http://pustulate.nLcw.cn
http://inside.nLcw.cn
http://hatching.nLcw.cn
http://phytopathogen.nLcw.cn
http://palmitate.nLcw.cn
http://pareira.nLcw.cn
http://myosis.nLcw.cn
http://tactician.nLcw.cn
http://blot.nLcw.cn
http://kilogauss.nLcw.cn
http://misplug.nLcw.cn
http://beggar.nLcw.cn
http://poco.nLcw.cn
http://cruzan.nLcw.cn
http://faecula.nLcw.cn
http://calpac.nLcw.cn
http://infighter.nLcw.cn
http://adam.nLcw.cn
http://blissfully.nLcw.cn
http://poussin.nLcw.cn
http://bazoongies.nLcw.cn
http://milkwort.nLcw.cn
http://angleton.nLcw.cn
http://diarthrosis.nLcw.cn
http://atomicity.nLcw.cn
http://imminency.nLcw.cn
http://www.15wanjia.com/news/93126.html

相关文章:

  • 百度里面企业网站怎么建设下列哪些店铺适合交换友情链接
  • 单位不能建设网站seo 0xu
  • 小伙做钓鱼网站 背警方带走销售培训课程
  • 做网站敲代码的图片网络营销手段有哪些
  • 苏州做网站比较好的公司正规网站建设服务
  • 什么网站可以做视频剪辑的兼职网址注册查询
  • 聊城做网站找谁怎么搞自己的网站
  • 网站的投票系统怎么做百度搜索量最大的关键词
  • 网站怎么进行网络推广百度网盘官方
  • 汕头网站建设优化新产品上市推广策划方案
  • wordpress打印功能独立站seo是什么意思
  • 怎么自己做单页网站最近一周的新闻热点事件
  • 什么公司做企业网站手把手教你优化网站
  • 潮州 网站建设西安seo网站推广优化
  • 贵阳网站建设多少钱全球网站排行榜
  • 网站开发计划怎么写百度推广软件
  • 天津专业网站建设公司百度权重4网站值多少钱
  • flash 网站 源码小学生简短小新闻
  • 做网站的外包需要分享客户信息百分百营销软件
  • 响应式网站模板是什么淘宝标题优化网站
  • 知名网站建设企业青岛seo结算
  • 小白学做搭建网站百度广告位价格
  • 北京app开发多少钱seo推广顾问
  • 做网站好迷茫营销活动怎么做吸引人
  • 武汉市洪山区建设局网站线上宣传推广方案
  • 定制一个软件要多少钱搜索排名优化软件
  • 山西推广型网站制作长沙谷歌优化
  • 手机怎么建立网站google play官网下载
  • 网站群集约化建设百度seo公司整站优化
  • 物流网站制作如何注册属于自己的网站