直播軟體開發,css預載入旋轉動畫 與 流光字型
直播軟體開發,css預載入旋轉動畫 與 流光字型
一、預載入旋轉動畫
Html <view class="concentric_round"></view> css body { background-color: #e9967a; } .concentric_round { width: 200rpx; height: 200rpx; position: relative; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -100%); } .concentric_round::after, .concentric_round::before { content: ''; display: block; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: #fff; opacity: 0.4; border-radius: 100%; } .concentric_round::before { width: 50%; height: 50%; animation: beform_round 0.6s ease-in-out infinite alternate; } .concentric_round::after { width: 100%; height: 100%; animation: after_round 0.6s ease-in-out infinite alternate; } /* 外圓 */ @-webkit-keyframes after_round { 0% { transform: translate3d(-50%, -50%, 0) scale(1.3); } 100% { transform: translate3d(-50%, -50%, 0) scale(1); } } @keyframes after_round { 0% { transform: translate3d(-50%, -50%, 0) scale(1.3); } 100% { transform: translate3d(-50%, -50%, 0) scale(1); } } /* 內圓 */ @-webkit-keyframes beform_round { 0% { transform: translate3d(-50%, -50%, 0) scale(0.7); } 100% { transform: translate3d(-50%, -50%, 0) scale(1); } } @keyframes beform_round { 0% { transform: translate3d(-50%, -50%, 0) scale(0.7); } 100% { transform: translate3d(-50%, -50%, 0) scale(1); } }
二、流光字型動畫
html <view class="preload">F-REWARD</view> css .preload { width: 100%; font-weight: bold; font-family: 'Arial', 'Microsoft YaHei', '黑體', '宋體', sans-serif; font-size: 2.5rem; text-align: center; background-image: -webkit-linear-gradient(left, black, transparent 25%, black 50%, transparent 75%, black); -webkit-text-fill-color: transparent; -webkit-background-clip: text; -webkit-background-size: 200% 100%; -webkit-animation: masked-animation 2s infinite linear; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -100%); } @-webkit-keyframes masked-animation { 0% { background-position: 0 0; } 100% { background-position: -100% 0; } }
以上就是 直播軟體開發,css預載入旋轉動畫 與 流光字型,更多內容歡迎關注之後的文章
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/69978258/viewspace-2932428/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【架構設計】你真的理解軟體設計中的SOLID原則嗎?
- 什麼是集中採購 集中採購管理軟體介紹
- ISM Web工業視覺化組態軟體
- 直播平臺搭建,Android手機拍照和手機相簿選取圖片的工具
- 影片直播app原始碼,EditText保留小數位數
- 搭建直播平臺,情景模式介面設計
- 資料量大也不卡的bi軟體有哪些?
- Mac上優秀的虛擬機器軟體推薦 PD Parallels Desktop 18.1.1
- 軟體驗收測試有什麼注意事項?出具權威測試報告的軟體檢測機構安利
- 影片直播美顏sdk趣味功能的實現流程
- 直播平臺搭建,js 正規表示式獲取括號裡面的內容
- 直播網站原始碼,vant中Dialog的使用,如何修改Message字號大小
- 一週搞定跨業務資料分析的bi軟體有哪些?
- Ai繪畫生成軟體哪個好用?這款AI作畫的二次元太精緻了
- CSS中知