
安鹿分享在網站任意位置增補滾動字幕的博客本悬技術計劃 。
通過CSS代碼定義滾動動畫效果,网站位置包括背景色 、任意超凡先锋破解版字體顏色 、增补字幕自定滾動速度及移動端適配 ,滚动果超凡先锋典藏馆鼠標懸停可暫停動畫。义文超凡先锋破解版直装
HTML部分通過
/*滾動字幕安鹿*/@media screen and(max-width: 500px){body .scroll-notice-animate {animation: 30s wordsLoop linear infinite normal;}}.scroll-notice {background:#0aa7e4;color:#fff;white-space:nowrap;overflow:hidden;}.scroll-notice a {color:#fff;}.scroll-notice-animate {padding-left:20px;animation:35s wordsLoop linear infinite normal;}.scroll-notice-animate:hover {animation-play-state:paused;}@keyframes wordsLoop {0% {transform:translateX(100%);}100% {transform:translateX(-100%);}/*滾動字幕安鹿*//*滾動字幕安鹿*/@media screen and 网站位置(max-width: 500px) { body .scroll-notice-animate { animation: 30s wordsLoop linear infinite normal; } }.scroll-notice { background:#0aa7e4; color:#fff; white-space:nowrap; overflow:hidden;}.scroll-notice a { color:#fff;}.scroll-notice-animate { padding-left:20px; animation:35s wordsLoop linear infinite normal;}.scroll-notice-animate:hover { animation-play-state:paused;}@keyframes wordsLoop { 0% { transform:translateX(100%);}100% { transform:translateX(-100%);}/*滾動字幕安鹿*//*滾動字幕安鹿*/@media screen and (max-width: 500px) { body .scroll-notice-animate { animation: 30s wordsLoop linear infinite normal; } }.scroll-notice { background:#0aa7e4; color:#fff; white-space:nowrap; overflow:hidden;}.scroll-notice a { color:#fff;}.scroll-notice-animate { padding-left:20px; animation:35s wordsLoop linear infinite normal;}.scroll-notice-animate:hover { animation-play-state:paused;}@keyframes wordsLoop { 0% { transform:translateX(100%);}100% { transform:translateX(-100%);}/*滾動字幕安鹿*/
在head ,或任意你需要的任意地方加入如下代碼。
<div class="scroll-notice"><div class="scroll-notice-animate">歡迎來到安鹿軒,增补字幕自定3533464073有任何尷尬請聯係我!</div></div>歡迎來到安鹿軒 ,滚动果3533464073有任何尷尬請聯係我!歡迎來到安鹿軒,义文超凡先锋小叮当直装停暂停效3533464073有任何尷尬請聯係我!