網站首頁 編程語言 正文
<template> <div class="ProgressVideoBox"> //背景圖 <image style=" width: 100% !important; height: 100% !important; background-color: #eeeeee; " mode="scaleToFill" :src="imgUrl" ></image> <div class="mook"> <div class="shadow" :style="`background: conic-gradient(#fff ${progress}%, gray ${progress}%)`" ></div> <div class="num">{{ progress}}%</div> </div> </div> </template> <script lang="ts"> import { defineComponent, watchEffect } from "vue"; export default defineComponent({ name: "ProgressVideo", components: {}, setup() { setInterval(()=>{ progress++ },1000) return { progress, }; }, }); </script> <style lang="scss"> .ProgressVideoBox { text-align: center; width: 132px; height: 180px; position: relative; border-radius: 30px; overflow: hidden; .mook { width: 100%; height: 100%; background-color: rgba(119, 113, 102, 0.7); position: absolute; top: 0; left: 0; z-index: 1; .shadow { width: 120px; height: 120px; position: relative; border-radius: 50%; margin: 20px auto 0; /* background: conic-gradient(#ddff5c 50%, #1d335c 50%); */ mask: radial-gradient(transparent 44px, #000 45px); -webkit-mask: radial-gradient(transparent 44px, #000 45px); transform: scale(0.6); } .shadow::before { content: ""; position: absolute; left: 48px; top: 0px; width: 5px; height: 5px; background: #ddff5c; border-radius: 50%; } .shadow::after { content: ""; position: absolute; left: -1px; top: 44px; width: 8px; height: 8px; background: #85ea8e; border-radius: 50%; } .num { width: 100%; color: #fff; font-size: 35px; margin-top: -20px; } } } </style>
原文鏈接:https://blog.csdn.net/m0_64207574/article/details/131895359
- 上一篇:沒有了
- 下一篇:沒有了
相關推薦
- 2022-10-01 使用flask如何獲取post請求參數_python
- 2022-05-02 分布式利器redis及redisson的延遲隊列實踐_Redis
- 2022-07-22 spring-boot設置跨域訪問方式
- 2022-11-03 python回歸分析邏輯斯蒂模型之多分類任務詳解_python
- 2022-06-13 Flutter實現自定義搜索框AppBar的示例代碼_Android
- 2022-12-09 ReactQuery系列React?Query?實踐示例詳解_React
- 2022-04-22 Go 字符串時間等相互轉化以及時間加減等操作
- 2022-02-17 Pytorch常用的對象類和繼承機制(如果有)
- 欄目分類
-
- 最近更新
-
- window11 系統安裝 yarn
- 超詳細win安裝深度學習環境2025年最新版(
- Linux 中運行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎操作-- 運算符,流程控制 Flo
- 1. Int 和Integer 的區別,Jav
- spring @retryable不生效的一種
- Spring Security之認證信息的處理
- Spring Security之認證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權
- redisson分布式鎖中waittime的設
- maven:解決release錯誤:Artif
- restTemplate使用總結
- Spring Security之安全異常處理
- MybatisPlus優雅實現加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務發現-Nac
- Spring Security之基于HttpR
- Redis 底層數據結構-簡單動態字符串(SD
- arthas操作spring被代理目標對象命令
- Spring中的單例模式應用詳解
- 聊聊消息隊列,發送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠程分支