HTML+CSS+JS实现 ❤️ 卡西欧手表图形特效❤️

   代码目录:

主要代码实现:

css样式:

@import url('https://fonts.googleapis.com/css2?family=Gidugu&family=Michroma&display=swap');
@font-face {font-family: "DSEG7 Classic";src: url(https://manzdev.github.io/twitch-casio/dseg7-bold.woff2) format("woff2"), url(https://manzdev.github.io/twitch-casio/dseg7-bold.woff) format("woff");font-display: swap;
}@font-face {font-family: "DSEG14 Classic";src: url(https://manzdev.github.io/twitch-casio/dseg14-bold.woff2) format("woff2"), url(https://manzdev.github.io/twitch-casio/dseg14-bold.woff) format("woff");font-display: swap;
}:root {--model-color: #333;--band-color: #3475b1;--white-color: #d3d2d4;--yellow-color: #cca25d;--lcd-background-color: #dededc;--lcd-color: #181921;--red-color: #7d3925;--led-color: #84fd03;--lcd-font: "DSEG7 Classic", monospace;--shine-gradient: linear-gradient(40deg, #fff0 15%, #fff2 30%, #fff6 50%, #fff2 70%, #fff0 85%);--casio-border-radius: 11% / 25%;--casio-shape: polygon(0 20%, 10% 0, 90% 0, 100% 20%, 100% 80%, 90% 100%, 10% 100%, 0 80%);--button-notch-shape: polygon(100% 0, 100% 100%, 0 90%, 0 10%);
}body {margin: 0;font-family: Michroma, sans-serif;font-weight: bold;transition: background 0.2s ease;
}body.off {background: #111;
}.casio-f91w,
.container {pointer-events: none;-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;
}.container {display: flex;justify-content: center;
}/* Utility classes */.text-white {color: var(--white-color);
}.text-yellow {color: var(--yellow-color);
}.text-red {color: var(--red-color);
}.font-cursive {font-family: sans-serif;font-style: italic;font-weight: bolder;font-size: 15px;letter-spacing: 1px;transform: scale(1, 0.8);
}.font-small {font-size: 6px;letter-spacing: 1px;
}.font-medium {font-size: 11px;
}span.arrow {display: inline-block;color: var(--red-color);transform: scale(2, 0.75) translateX(var(--x));
}span.arrow.left {--x: -1px;
}span.arrow.right {--x: 1px;
}.mini {font-size: 23px;
}.casio-f91w {--width: 320px;--height: 270px;display: flex;flex-direction: column;align-items: center;
}.casio-f91w .bracelet {width: 73%;height: 150px;background: #333;-webkit-clip-path: polygon(0 0, 100% 0, 90% 100%, 10% 100%);clip-path: polygon(0 0, 100% 0, 90% 100%, 10% 100%);
}.casio-f91w .bracelet.top {transform: scaleY(-1);
}.casio-f91w .bracelet .band.first {height: 45px;box-shadow: 0 3px 8px 3px #111;
}.casio-f91w .bracelet .band.second {height: 10px;background: linear-gradient(#111, transparent, #444);transform: translateY(45px);position: relative;display: flex;justify-content: center;
}.casio-f91w .bracelet .band.second::after {content: "";display: block;background: linear-gradient(#111 10%, #222 23%, #333 50%, #444 75%, #555 95%);width: 50%;height: 20px;position: absolute;transform: translateY(-5px);border-radius: 25px;
}.casio-f91w .bracelet.top {background: #555;
}.casio-f91w .bracelet.top .band.first {box-shadow: 0 3px 3px 3px #666;background: #444;
}.casio-f91w .bracelet.top .band.second {background: linear-gradient(#444 0 30%, #111 75% 100%);
}.casio-f91w .bracelet.top .band.second::after {background-color: #444;transform: scaleY(0.8) translateY(-6px);background-image: linear-gradient(#444 0 30%, #333 60%, #111 75% 100%);
}.casio-f91w .core-watch-container {display: flex;justify-content: center;align-items: center;width: calc(var(--width) * 1.1);
}.casio-f91w .core-watch-container .button-notch {width: 8px;height: 60px;background: #262626;-webkit-clip-path: var(--button-notch-shape);clip-path: var(--button-notch-shape);
}.casio-f91w .core-watch-container .button-notch+.button {width: 18px;height: 20px;border: 1px solid #989f7c;border-radius: 2px;position: absolute;z-index: -1;background: linear-gradient(to bottom, #fbfbfa 30%, #4f4a42 60%, #aea084);pointer-events: all;
}.casio-f91w .core-watch-container .button-notch.right+.button {transform: translate(0, -40px);
}.casio-f91w .core-watch-container .button-notch.left+.button {transform: translate(-12px, -40px);
}.casio-f91w .core-watch-container .button-notch.left {transform: translateX(1px);
}.casio-f91w .core-watch-container .button-notch.right {transform: translateX(-1px) scaleX(-1);
}.casio-f91w .core-watch-container .space {height: 15px;
}.casio-f91w .core-watch {width: var(--width);height: var(--height);background-color: var(--model-color);-webkit-clip-path: var(--casio-shape);clip-path: var(--casio-shape);display: flex;justify-content: center;align-items: center;box-shadow: 0 -2px 0 0 #555 inset, 0 -3px 0 1px #222 inset, 0 2px 0 0 #222 inset, 0 3px 0 1px #555 inset;
}.casio-f91w .crystal-screen {width: calc(var(--width) * 0.85);height: calc(var(--height) * 0.85);background: #111;border-radius: var(--casio-border-radius);display: flex;justify-content: center;align-items: center;position: relative;overflow: hidden;box-shadow: 0 0 2px 2px #444, 0 0 0 5px #222, 0 0 7px 7px #111;
}.casio-f91w .crystal-screen::after {content: "";display: block;background: var(--shine-gradient);width: 100%;height: 100%;position: absolute;
}.casio-f91w .color-border {width: calc(var(--width) * 0.8);height: calc(var(--height) * 0.8);border-radius: var(--casio-border-radius);box-shadow: 0 0 0 4px var(--band-color) inset, 0 0 0 8px #000 inset, 0 0 0 10px #eee inset;
}.casio-f91w .lcd-screen {display: flex;flex-direction: column;align-items: center;
}.casio-f91w .lcd-screen .top {margin-top: 12px;display: flex;justify-content: space-evenly;align-items: center;width: calc(var(--width) * 0.7);border-bottom: 2px solid var(--band-color);padding-bottom: 4px;
}.casio-f91w .lcd-screen .center {display: flex;flex-direction: column;align-items: center;width: calc(var(--width) * 0.65);
}.casio-f91w .lcd-screen .center .inner-top {display: flex;justify-content: space-between;padding-top: 4px;width: 90%;
}.casio-f91w .lcd-screen .center .inner-center {font-family: var(--lcd-font);font-size: 38px;width: calc(var(--width) * 0.6);height: 75px;background: var(--lcd-background-color);color: var(--lcd-color);border-radius: 10px;box-shadow: 0 0 0 4px #000, 0 0 0 5px var(--white-color);margin: 10px 0;padding-top: 10px;display: flex;flex-direction: column;transition: background-image 0.25s;position: relative;
}.casio-f91w .lcd-screen .center .inner-center::before {content: "";display: block;background: linear-gradient(#292928 50%, transparent);border-radius: 8px 8px 0 0;width: 100%;height: 10px;position: absolute;top: 0;
}.casio-f91w .lcd-screen .center .inner-center.on {background: radial-gradient(circle at 0 50%, var(--led-color) 40%, transparent 60%), linear-gradient(#999 8%, var(--lcd-background-color) 11%);
}.casio-f91w .lcd-screen .center .inner-center .lcd-top {display: flex;justify-content: space-around;
}.casio-f91w .lcd-screen .center .inner-center .lcd-top .timemode {font-family: sans-serif;font-size: 10px;align-self: flex-end;transform: translate(20px);
}.casio-f91w .lcd-screen .center .inner-center .lcd-top .weekday {font-family: "DSEG14 Classic", monospace;
}.casio-f91w .lcd-screen .center .inner-center .lcd-top .day {transform: translateX(5px);
}.casio-f91w .lcd-screen .center .inner-center .lcd-bottom {display: flex;justify-content: center;padding-top: 5px;
}.casio-f91w .lcd-screen .center .inner-center .lcd-bottom .time {display: flex;
}.casio-f91w .lcd-screen .center .inner-center .lcd-bottom .seconds {align-self: flex-end;
}.casio-f91w .lcd-screen .center .inner-bottom {display: flex;justify-content: space-evenly;width: calc(var(--width) * 0.8);
}.casio-f91w .lcd-screen .bottom {display: flex;justify-content: space-around;width: calc(var(--width) * 0.7);
}.casio-f91w .lcd-screen .bottom .water,
.casio-f91w .lcd-screen .bottom .resist {align-self: flex-end;
}.casio-f91w .lcd-screen .bottom .water::before,
.casio-f91w .lcd-screen .bottom .resist::before {content: "";display: block;border-top: 2px solid var(--band-color);width: 130%;transform: translate(-8px, 0);
}.casio-f91w .lcd-screen .bottom .resist::before {transform: translate(-10px, 0);
}.casio-f91w .lcd-screen .bottom .wr-box {letter-spacing: -3px;border: 2px solid var(--band-color);padding: 0 16px 0 10px;border-radius: 5px 5px 20px 20px / 5px 5px 30px 30px;transform: translate(0, 8px);
}.casio-f91w .lcd-screen .bottom .wr-box>span {display: inline-block;transform: translate(0, -2px);
}.casio-f91w .lcd-screen .bottom .wr-box .r {font-style: italic;
}.buttons-container {position: relative;z-index: 10;
}

html代码 :

<!DOCTYPE html>
<html lang="en"><head><meta charset="UTF-8"><title> CASIO F-91W with Pure CSS!!</title><link rel="stylesheet" href="css/style.css"></head><body><div class="container"><div class="casio-f91w"><div class="top bracelet"><div class="first band"></div><div class="second band"></div></div><div class="core-watch-container"><div class="buttons-container"><div class="left top button-notch"></div><div class="button"></div><div class="space"></div><div class="left bottom button-notch"></div><div class="button"></div></div><div class="core-watch"><div class="crystal-screen"><div class="color-border"><div class="lcd-screen"><div class="top"><div class="brand text-white">CASIO</div><div class="model text-yellow font-cursive">F-91W</div></div><div class="center"><div class="inner-top"><div class="action text-white font-small"><span class="left arrow">◀</span> LIGHT</div><div class="chronograph text-yellow font-small">ALARM CHRONOGRAPH</div></div><div class="inner-center"><div class="lcd-top"><span class="timemode">24H</span><span class="weekday mini">--</span><span class="day mini">--</span></div><div class="lcd-bottom"><span class="time"><span class="hours">--</span><span class="sep">:</span><span class="minutes">--</span></span><span class="seconds mini">--</span></div></div><div class="inner-bottom"><div class="mode text-white font-small"><span class="left arrow">◀</span> MODE</div><div class="alarm text-white font-small">ALARM ON-OFF/24HR <span class="right arrow">▶</span></div></div></div><div class="bottom"><div class="water text-white font-medium">WATER</div><div class="wr-box text-red"><span>W<span class="r">R</span></span></div><div class="resist text-white font-medium">RESIST</div></div></div></div></div></div><div class="buttons-container"><div class="right top button-notch"></div><div class="space"></div><div class="right bottom button-notch"></div><div class="button"></div></div></div><div class="bottom bracelet"><div class="first band"></div><div class="second band"></div></div></div></div><script src="js/script.js"></script></body></html>

js文件在上面截图可以看到 需要引进来。

精彩推荐更新中:

HTML5大作业实战100套

  打卡 文章 更新  36  /  100天

大家可以点赞、收藏、关注、评论我啦 、需要完整文件随时联系我或交流哟~!

在这里插入图片描述

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/562118.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

HTML+CSS+JS实现 ❤️ 立方体旋转图片切换特效❤️

效果演示&#xff1a; 代码目录&#xff1a; 主要代码实现&#xff1a; css样式&#xff1a; /*Full-page view:https://codepen.io/GeorgePark/full/gegavO/*/import url(https://fonts.googleapis.com/css?familyMontserrat:500); :root {/* Base font size */font-size: 1…

湖北大学计算机考研怎么样,湖北大学研究生好考吗 复试难吗

考取湖北大学的研究生比较容易。考研难易主要看招生单位所处的地域、名气、排名等&#xff0c;因为报考生源不同。一般来说发达地区特别是大城市的重点大学都难考&#xff0c;而非重点大学则相对好考。湖北大学是非211高校&#xff0c;所在城市位于湖北。湖北大学研究生好考吗1…

区分错误类型_牛鹭学院:Bug类型解析及其常见实例介绍

软件测试中&#xff0c;bug的类型有很多种&#xff0c;比如&#xff1a;代码错误、界面优化、设计缺陷、需求补充和用户体验等&#xff1b;一般情况下&#xff0c;需求补充和设计缺陷比较好区分&#xff0c;但是代码错误、界面优化和用户体验区分不是很明显&#xff1b;下面我们…

HTML+CSS+JS实现 ❤️酷炫的时光隧道旅行动特效❤️

效果演示&#xff1a; 代码目录&#xff1a; 主要代码实现&#xff1a; css样式&#xff1a; html, body {width: 100%;height: 100%;overflow: hidden; }body {background: #000;text-align: center; }body::before {content: "";display: inline-block;height: 10…

HTML+CSS+JS实现 ❤️夜晚云层动画特效❤️

效果演示&#xff1a; 基于css3 keyframes 属性制作乌云密布云层动画&#xff0c;夜晚云层飘过动画特效。可用于网页动态云层背景特效。利用animation 和png云图片制作完成。 代码目录&#xff1a; 主要代码实现&#xff1a; css样式&#xff1a; html, body {width: 100%;he…

HTML+CSS+JS实现 ❤️3D悬浮粒子翻转动效❤️

效果演示&#xff1a; three基于canvas制作全屏的3D方块粒子悬停&#xff0c;跟随鼠标移动3D翻转动画特效。支持360度无死角翻转效果。 代码目录&#xff1a; 主要代码实现&#xff1a; html代码 : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN&qu…

3 配置ftp文件服务器,03-FTP和TFTP配置

1.1 FTP简介FTP(File Transfer Protocol&#xff0c;文件传输协议)用于在远端服务器和本地主机之间传输文件&#xff0c;是IP网络上传输文件的通用协议。在万维网(WWW&#xff0c;World Wide Web)出现以前&#xff0c;用户使用命令行方式传输文件&#xff0c;最通用的应用程序…

HTML+CSS+JS实现 ❤️新型冠状病毒射击小游戏❤️

效果演示&#xff1a; 代码目录&#xff1a; 主要代码实现&#xff1a; 部分JS代码 : var stage {w: 1280,h: 720 }var _pexcanvas document.getElementById("canvas"); _pexcanvas.width stage.w; _pexcanvas.height stage.h; var ctx _pexcanvas.getContext(…

微信小程序可以加服务器上的字体,微信小程序中自定义字体

微信小程序支持自定义字体开放出来也有段时间&#xff0c;这边整理下使用自定义字体中&#xff0c;容易忽略的一些问题&#xff0c;和简便的全局自定义方式。如果是同时加载两种字体包&#xff0c;先下载下来的会被后下载下来的字体包给覆盖。官网接口文档因此字体包有却只能用…

HTML+CSS+JS实现 ❤️3D奥运五环图形特效❤️

效果演示&#xff1a; 代码目录&#xff1a; 主要代码实现&#xff1a; CSS样式&#xff1a; /*** debug in progress ***/:root {--metal: #ffffff45;--gold: repeating-conic-gradient(#edc800 0deg, #ffe800 15deg, #f3cf00 30deg, #e3b600 45deg, #edc800 60deg) 10% 10%;…

【CSDN】-官方插件推荐懒人必备神器

前言&#xff1a; 插件(Plug-in,又称addin、add-in、addon或add-on,又译外挂)是一种遵循一定规范的应用程序接口编写出来的程序。其只能运行在程序规定的系统平台下&#xff08;可能同时支持多个平台&#xff09;&#xff0c;而不能脱离指定的平台单独运行。因为插件需要调用原…

HTML+CSS+JS实现 ❤️3D网状球体动画特效❤️

效果演示&#xff1a; 代码目录&#xff1a; 主要代码实现&#xff1a; CSS样式&#xff1a; property --color-position {syntax: <length-percentage>;inherits: false;initial-value: 30%; }body {margin: 0;overflow: hidden;--color-position: 30%;background: rad…

怎么读取can报文_【案例】东风天龙“仪表未收到EECU报文”

来呀&#xff01;来呀&#xff01;关注我吧&#xff01;&#xff01; 车辆信息车型东风天龙发动机ISD270 50ECU型号CM2150E尿素泵依米泰克故障现象卡车司机反馈车子跑起来没有力、爬坡无力、仪表上指示灯亮和仪表未收到EECU报文故障排除&#xff1a;检测仪无法进入系…

HTML+CSS+JS实现 ❤️悬挂摇摆的弹珠动画特效❤️

效果演示&#xff1a; 代码目录&#xff1a; 主要代码实现&#xff1a; 部分HTML代码 : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns"http:…

中如何对一个数取余_如何找到自己在一个城市中的定位?

更多资讯&#xff0c;关注微信公众号&#xff1a;好房U购四川。如何找到自己在一个城市中的定位&#xff1f;最近&#xff0c;各大企业都纷纷启动了校招工作。有条件的&#xff0c;全国都在跑&#xff1b;至少&#xff0c;川内都要跑一跑。而毕业生最迷茫的&#xff0c;不过这两…

HTML+CSS+JS实现 ❤️翻页倒计时ui特效❤️

效果演示&#xff1a; 代码目录&#xff1a; 主要代码实现&#xff1a; CSS样式&#xff1a; charset "utf-8"; body {background-color: #f2f1ed; }.wrap {position: absolute;bottom: 0;top: 0;left: 0;right: 0;margin: auto;height: 310px; }a {text-decoration…

HTML+CSS+JS实现 ❤️CSS3图片遮罩高亮显示❤️

效果演示&#xff1a; GIF压缩太大、故显示图片查看吧 代码目录&#xff1a; 主要代码实现&#xff1a; CSS样式&#xff1a; charset "utf-8"; * {margin: 0;padding: 0;list-style: none; }body {background-color: #1B1B1B }img {border: 0;cursor: pointer; }a …

HTML+CSS+JS实现 ❤️响应式图文卡片滑块展示特效❤️

效果演示&#xff1a; 代码目录&#xff1a; 主要代码实现&#xff1a; CSS样式&#xff1a; import url("https://fonts.googleapis.com/css?familyQuicksand:400,500,700&subsetlatin-ext"); html {position: relative;overflow-x: hidden !important; }body…

代码写好了怎么在php里裕兴_8 行代码用Python画一个中国地图

源 / SegmentFaultJupyter首先&#xff0c;第一神器是Jupyter。如果你是第一次使用&#xff0c;可能搞不清楚它的开发者做这么个鬼东西出来干什么&#xff0c;说它是博客系统也不像&#xff0c;说它是web服务器也不像&#xff0c;但它就是有用。因为我们传统的web开发首先想的就…

❤️六W字《计算机基础知识》(三)(建议收藏)❤️

推荐阅读&#xff1a; ❤️《计算机基础知识》&#xff08;一&#xff09;&#xff08;建议收藏&#xff09;❤️ ❤️《计算机基础知识》&#xff08;二&#xff09;&#xff08;建议收藏&#xff09;❤️ ❤️ java项目精品实战案例 ❤️ 101. Internet上&#xff0c;访问We…