Deprecated: imwpcache\f884414bce24ee67f\f73723ec7b1919fa5::__construct(): Implicitly marking parameter $YECBGYFECGEAFWHA as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/www.chuangxiangniao.com/wp-content/plugins/imwpcache-dist/build/f884414bce24ee67ff73723ec7b1919fa5.php on line 2

Deprecated: imwpcache\f884414bce24ee67f\f73723ec7b1919fa5::__construct(): Implicitly marking parameter $BBWFDDBHHYHDXXAB as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/www.chuangxiangniao.com/wp-content/plugins/imwpcache-dist/build/f884414bce24ee67ff73723ec7b1919fa5.php on line 2
css,js骰子抽奖源码_创想鸟

css,js骰子抽奖源码

源码是根据之前发布的听话的骰子基础上再做升级的,免费提供源码,拿去学习吧!常来我们的创想鸟即可哦~

3(AD}SE%((Z)6CGA3$OAITY.png

代码:

PHP中文网--骰子抽奖html,body,ul {margin: 0;padding: 0;}body {perspective: 1200px;overflow: hidden;}ul {position: relative;width: 200px;height: 200px;margin: 100px auto;-webkit-transition: preserve-3d;-moz-transition: preserve-3d;-ms-transition: preserve-3d;transition: 5s ease-out;-webkit-transform-style: preserve-3d;-moz-transform-style: preserve-3d;-ms-transform-style: preserve-3d;transform-style: preserve-3d;cursor: pointer;}ul li {position: absolute;top: 0;left: 0;width: 100%;height: 100%;list-style: none;color: #fff;font-size: 24px;text-align: center;line-height: 200px;border-radius: 10%;}li:nth-child(1) {background: rgba(145, 41, 55, 0.9);-webkit-transform: translateZ(100px);-moz-transform: translateZ(100px);-ms-transform: translateZ(100px);-o-transform: translateZ(100px);transform: translateZ(100px);}li:nth-child(2) {background: rgba(54, 49, 46, 0.9);-webkit-transform: rotateY(90deg) translateZ(100px);-moz-transform: rotateY(90deg) translateZ(100px);-ms-transform: rotateY(90deg) translateZ(100px);-o-transform: rotateY(90deg) translateZ(100px);transform: rotateY(90deg) translateZ(100px);}li:nth-child(3) {background: rgba(149, 121, 123, 0.9);-webkit-transform: translateZ(-100px);-moz-transform: translateZ(-100px);-ms-transform: translateZ(-100px);-o-transform: translateZ(-100px);transform: translateZ(-100px);}li:nth-child(4) {background: rgba(102, 99, 79, 0.9);-webkit-transform: rotateY(-90deg) translateZ(100px);-moz-transform: rotateY(-90deg) translateZ(100px);-ms-transform: rotateY(-90deg) translateZ(100px);-o-transform: rotateY(-90deg) translateZ(100px);transform: rotateY(-90deg) translateZ(100px);}li:nth-child(5) {background: rgba(197, 113, 84, 0.9);-webkit-transform: rotateX(90deg) translateZ(100px);-moz-transform: rotateX(90deg) translateZ(100px);-ms-transform: rotateX(90deg) translateZ(100px);-o-transform: rotateX(90deg) translateZ(100px);transform: rotateX(90deg) translateZ(100px);}li:nth-child(6) {background: rgba(219, 184, 143, 0.9);-webkit-transform: rotateX(-90deg) translateZ(100px);-moz-transform: rotateX(-90deg) translateZ(100px);-ms-transform: rotateX(-90deg) translateZ(100px);-o-transform: rotateX(-90deg) translateZ(100px);transform: rotateX(-90deg) translateZ(100px);}
  • IPhone
  • Sugar
  • Bill
  • Thanks
  • XBox
  • Doll
window.onload = function(){wrap.style.cssText = "transform: rotateX(360deg) rotateY(360deg);transition: 1s ease-out;"}var wrap = document.getElementById('box');var degArr = [-360,-270,-180,-90,0,90,180,270,360]; //各个面对应角度wrap.onclick = function(){var round = 4 + Math.floor(Math.random()*9); //旋转圈数var randX = Math.floor(Math.random()*9); //随机Xvar randY = Math.floor(Math.random()*9); //随机Yvar degX = round*360+degArr[randX];var degY = round*360+degArr[randY];wrap.style.cssText = "transform: rotateX("+degX+"deg) rotateY("+degY+"deg)";}

免费拿去研究吧!更多好的源码尽在PHP中文网,关注我们给你好看哦~

相关推荐:

html会动的小狗狗源码

立即学习“前端免费学习笔记(深入)”;

css,js实现听话的骰子源码

js原声实现简单的微信聊天功能

以上就是css,js骰子抽奖源码的详细内容,更多请关注创想鸟其它相关文章!

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 chuangxiangniao@163.com 举报,一经查实,本站将立刻删除。
发布者:程序猿,转转请注明出处:https://www.chuangxiangniao.com/p/1545193.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2025年12月21日 16:40:19
css,js实现听话的骰子源码
下一篇 2025年12月21日 16:40:32

相关推荐

发表回复

登录后才能评论
关注微信