发表自话题:罗盘的使用方法入门
抖音时钟原生JS文字钟源码由目前市面上比较给力的抖音数字罗盘源码,精致简洁的外观搭配创意的罗盘效果,用户可以自由挑选数字罗盘特效,这里整合了目前比较创新的特效玩法,设计感十足,小伙伴们可以前来本站,根据提示快速设计打造出来哦~
原生抖音罗盘时钟代码分享 罗盘文字时钟软件非常火 文字时钟
更多免费源码
抖音超火❤ html+css+js 实现炫酷3D立方图像库(免费附源码)
抖音超火❤ html+css+js 实现炫酷3D魔方(免费附源码)
抖音超火❤流动爱心 html+css+js (免费附源码)
效果展示
在线演示地址
文件目录
抖音时钟原生JS文字钟源码特别说明
对于学习编程的朋友,可以参考一下,希望对大家有帮助。
抖音时钟数字罗盘源码说明
通过渠道进入交流群获取的,并且附带另外几款优质特效,还有html前端基础教学材料,需要的拿走,可以用来制作引导页背景
抖音时钟数字罗盘源码代码说明
本文实例为大家分享了JavaScript实现抖音罗盘时钟的具体代码,供大家参考,具体内容如下
其实很早以前就想发了,很多东西其实并不难,只要多动手动脑就行了,下面直接上代码,其他的自己下去慢慢研究吧!
ceshi9_1.css
#year { position: absolute; display: flex; justify-content: center; align-items: center; transition: all 1s } #mouth { position: absolute; width: 200px; height: 200px; box-sizing: border-box; display: flex; justify-content: center; align-items: center; transition: all 1s } #mouth li { position: absolute; width: 80px; height: 20px } #mouth ul { position: relative; left: -40px; top: -10px } #mouth ul li:nth-child(1) { transform: rotate(0deg) translateX(100px) } #mouth ul li:nth-child(2) { transform: rotate(30deg) translateX(100px) } #mouth ul li:nth-child(3) { transform: rotate(60deg) translateX(100px) } #mouth ul li:nth-child(4) { transform: rotate(90deg) translateX(100px) } #mouth ul li:nth-child(5) { transform: rotate(120deg) translateX(100px) } #mouth ul li:nth-child(6) { transform: rotate(150deg) translateX(100px) } #mouth ul li:nth-child(7) { transform: rotate(180deg) translateX(100px) } #mouth ul li:nth-child(8) { transform: rotate(210deg) translateX(100px) } #mouth ul li:nth-child(9) { transform: rotate(240deg) translateX(100px) } #mouth ul li:nth-child(10) { transform: rotate(270deg) translateX(100px) } #mouth ul li:nth-child(11) { transform: rotate(300deg) translateX(100px) } #mouth ul li:nth-child(12) { transform: rotate(330deg) translateX(100px) } #solar { position: absolute; width: 300px; height: 300px; box-sizing: border-box; display: flex; justify-content: center; align-items: center; transform: rotate(0); transition: all 5s; z-index: 50 } #solar li { position: absolute; width: 80px; height: 20px; cursor: pointer } #solar ul { position: relative; left: -40px; top: -10px } #solar ul li:nth-child(1) { transform: rotate(22.5deg) translateX(210px) } #solar ul li:nth-child(2) { transform: rotate(37.5deg) translateX(210px) } #solar ul li:nth-child(3) { transform: rotate(52.5deg) translateX(210px) } #solar ul li:nth-child(4) { transform: rotate(67.5deg) translateX(210px) } #solar ul li:nth-child(5) { transform: rotate(82.5deg) translateX(210px) } #solar ul li:nth-child(6) { transform: rotate(97.5deg) translateX(210px) } #solar ul li:nth-child(7) { transform: rotate(112.5deg) translateX(210px) } #solar ul li:nth-child(8) { transform: rotate(127.5deg) translateX(210px) } #solar ul li:nth-child(9) { transform: rotate(142.5deg) translateX(210px) } #solar ul li:nth-child(10) { transform: rotate(157.5deg) translateX(210px) } #solar ul li:nth-child(11) { transform: rotate(172.5deg) translateX(210px) } #solar ul li:nth-child(12) { transform: rotate(187.5deg) translateX(210px) } #solar ul li:nth-child(13) { transform: rotate(202.5deg) translateX(210px) } #solar ul li:nth-child(14) { transform: rotate(217.5deg) translateX(210px) } #solar ul li:nth-child(15) { transform: rotate(232.5deg) translateX(210px) } #solar ul li:nth-child(16) { transform: rotate(247.5deg) translateX(210px) } #solar ul li:nth-child(17) { transform: rotate(262.5deg) translateX(210px) } #solar ul li:nth-child(18) { transform: rotate(277.5deg) translateX(210px) } #solar ul li:nth-child(19) { transform: rotate(292.5deg) translateX(210px) } #solar ul li:nth-child(20) { transform: rotate(307.5deg) translateX(210px) } #solar ul li:nth-child(21) { transform: rotate(322.5deg) translateX(210px) } #solar ul li:nth-child(22) { transform: rotate(337.5deg) translateX(210px) } #solar ul li:nth-child(23) { transform: rotate(352.5deg) translateX(210px) } #solar ul li:nth-child(24) { transform: rotate(367.5deg) translateX(210px) } #data { position: absolute; width: 300px; height: 300px; box-sizing: border-box; display: flex; justify-content: center; align-items: center; transition: all 1s } #data li { position: absolute; width: 80px; height: 20px } #data ul { position: relative; left: -40px; top: -10px } #data ul li:nth-child(1) { transform: rotate(0) translateX(160px) } #data ul li:nth-child(2) { transform: rotate(11.25deg) translateX(160px) } #data ul li:nth-child(3) { transform: rotate(22.5deg) translateX(160px) } #data ul li:nth-child(4) { transform: rotate(33.75deg) translateX(160px) } #data ul li:nth-child(5) { transform: rotate(45deg) translateX(160px) } #data ul li:nth-child(6) { transform: rotate(56.25deg) translateX(160px) } #data ul li:nth-child(7) { transform: rotate(67.5deg) translateX(160px) } #data ul li:nth-child(8) { transform: rotate(78.75deg) translateX(160px) } #data ul li:nth-child(9) { transform: rotate(90deg) translateX(160px) } #data ul li:nth-child(10) { transform: rotate(101.25deg) translateX(160px) } #data ul li:nth-child(11) { transform: rotate(112.5deg) translateX(160px) } #data ul li:nth-child(12) { transform: rotate(123.75deg) translateX(160px) } #data ul li:nth-child(13) { transform: rotate(135deg) translateX(160px) } #data ul li:nth-child(14) { transform: rotate(146.25deg) translateX(160px) } #data ul li:nth-child(15) { transform: rotate(157.5deg) translateX(160px) } #data ul li:nth-child(16) { transform: rotate(168.75deg) translateX(160px) } #data ul li:nth-child(17) { transform: rotate(180deg) translateX(160px) } #data ul li:nth-child(18) { transform: rotate(191.25deg) translateX(160px) } #data ul li:nth-child(19) { transform: rotate(202.5deg) translateX(160px) } #data ul li:nth-child(20) { transform: rotate(213.75deg) translateX(160px) } #data ul li:nth-child(21) { transform: rotate(225deg) translateX(160px) } #data ul li:nth-child(22) { transform: rotate(236.25deg) translateX(160px) } #data ul li:nth-child(23) { transform: rotate(247.5deg) translateX(160px) } #data ul li:nth-child(24) { transform: rotate(258.75deg) translateX(160px) } #data ul li:nth-child(25) { transform: rotate(270deg) translateX(160px) } #data ul li:nth-child(26) { transform: rotate(281.25deg) translateX(160px) } #data ul li:nth-child(27) { transform: rotate(292.5deg) translateX(160px) } #data ul li:nth-child(28) { transform: rotate(303.75deg) translateX(160px) } #data ul li:nth-child(29) { transform: rotate(315deg) translateX(160px) } #data ul li:nth-child(30) { transform: rotate(326.25deg) translateX(160px) } #data ul li:nth-child(31) { transform: rotate(337.5deg) translateX(160px) } #AP { position: absolute; width: 400px; height: 400px; box-sizing: border-box; display: flex; justify-content: center; align-items: center; transition: all 1s } #AP li { position: absolute; width: 80px; height: 20px } #AP ul { position: relative; left: -40px; top: -10px } #AP ul li:nth-child(1) { transform: rotate(0deg) translateX(250px) } #AP ul li:nth-child(2) { transform: rotate(180deg) translateX(250px) }ceshi9_2.css
#message { position: absolute; width: 240px; height: 500px; right: -310px; font-size: 18px; color: #b4eeb4; font-family: fontOne; box-sizing: border-box } #message ul li { position: absolute; margin: 25px 3px; width: 18px; text-align: center; word-wrap: break-word; border: 1px solid #fff } #message ul li:nth-child(1) { right: 5px } #message ul li:nth-child(2) { right: 30px } #message ul li:nth-child(3) { right: 55px } #message ul li:nth-child(4) { right: 80px } #message ul li:nth-child(5) { right: 105px } #message ul li:nth-child(6) { right: 130px } #message ul li:nth-child(7) { right: 155px } #message ul li:nth-child(8) { right: 180px } #message ul li:nth-child(9) { right: 205px } #message ul li:nth-child(10) { right: 230px }ceshi9_3.css
* { padding: 0; margin: 0 } body { background: #0e0008; overflow: hidden; color: #fff; font-size: 14px } #sum { width: 730px; height: 730px; position: absolute; top: 50%; left: 50%; margin-left: -365px; margin-top: -365px; box-sizing: border-box; display: flex; justify-content: center; align-items: center } li { text-align: center; list-style-type: none } #second { position: absolute; width: 600px; height: 600px; box-sizing: border-box; display: flex; justify-content: center; align-items: center; transition: all 1s } #second li { position: absolute; width: 80px; height: 20px } #second ul { position: relative; left: -40px; top: -10px } #minute { position: absolute; width: 500px; height: 500px; box-sizing: border-box; display: flex; justify-content: center; align-items: center; transition: all 1s } #minute li { position: absolute; width: 80px; height: 20px } #minute ul { position: relative; left: -40px; top: -10px } #hour { position: absolute; width: 400px; height: 400px; box-sizing: border-box; display: flex; justify-content: center; align-items: center; transition: all 1s } #hour li { position: absolute; width: 50px; height: 20px } #hour ul { position: relative; left: -25px; top: -10px } #shade { position: absolute; list-style-type: none; background: rgba(11, 87, 187, .7); width: 430px; height: 28px; left: 366px } #second ul li:nth-child(1) { transform: rotate(0) translateX(400px) } #second ul li:nth-child(2) { transform: rotate(6deg) translateX(400px) } #second ul li:nth-child(3) { transform: rotate(12deg) translateX(400px) } #second ul li:nth-child(4) { transform: rotate(18deg) translateX(400px) } #second ul li:nth-child(5) { transform: rotate(24deg) translateX(400px) } #second ul li:nth-child(6) { transform: rotate(30deg) translateX(400px) } #second ul li:nth-child(7) { transform: rotate(36deg) translateX(400px) } #second ul li:nth-child(8) { transform: rotate(42deg) translateX(400px) } #second ul li:nth-child(9) { transform: rotate(48deg) translateX(400px) } #second ul li:nth-child(10) { transform: rotate(54deg) translateX(400px) } #second ul li:nth-child(11) { transform: rotate(60deg) translateX(400px) }上一篇:著名风水大师胡丁养