1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | /* 預先載入圖片避免閃爍 */ #dynamic_logo::before { content: url('https://images.plurk.com/XOGXVWiHKCMByXMUusOdV.gif') url('https://images.plurk.com/3zuVlTJHTU3IeietB78PL9.gif') url('https://images.plurk.com/q5TP0BWPkmzeyq0zzNkHA.gif') url('https://images.plurk.com/5TmlunQdkK3y391qdJ6A3E.png') url('https://images.plurk.com/3AnpEVyZsopTmYvVd0KqaR.png'); position: absolute; width: 0; height: 0; overflow: hidden; z-index: -1; } /* 基本容器 */ #dynamic_logo { position: fixed; bottom: 10px; right: 10px; width: 300px; height: 300px; z-index: 1000; overflow: hidden; filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.2)); background: url('https://images.plurk.com/XOGXVWiHKCMByXMUusOdV.gif') no-repeat left/contain; } /* 懸浮時的動態圖與游標 */ #dynamic_logo::after { content: ''; display: block; width: 100%; height: 100%; background: url('https://images.plurk.com/3zuVlTJHTU3IeietB78PL9.gif') no-repeat left/contain; cursor: url('https://images.plurk.com/5TmlunQdkK3y391qdJ6A3E.png'), auto; } #dynamic_logo:hover { background: none; } /* 點擊後的圖 */ #creature { display: none; padding-left: 100%; width: 100%; height: 100%; background: url('https://images.plurk.com/q5TP0BWPkmzeyq0zzNkHA.gif') no-repeat left/contain; cursor: url('https://images.plurk.com/3AnpEVyZsopTmYvVd0KqaR.png'), auto; } #dynamic_logo:active #creature, #creature:hover { display: block; } /* 保持 hover 時 only-after 顯示 */ #dynamic_logo:not(:hover)::after { background: none; } |
Direct link: https://paste.plurk.com/show/Y1ON8GRu2TvgBAEBElFf