<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>CSS on Time Friend</title><link>https://time-friend.com/en/tags/css/</link><description>Recent content in CSS on Time Friend</description><generator>Hugo</generator><language>en-GB</language><lastBuildDate>Wed, 29 Jul 2026 15:15:07 +0800</lastBuildDate><atom:link href="https://time-friend.com/en/tags/css/index.xml" rel="self" type="application/rss+xml"/><item><title>Adding an Animated Logo to My Blog</title><link>https://time-friend.com/en/archive/blog-architecture-animated-logo/</link><pubDate>Thu, 14 Aug 2025 17:00:00 +0000</pubDate><guid>https://time-friend.com/en/archive/blog-architecture-animated-logo/</guid><description>&lt;p&gt;That small square in the top-left corner of the site? It&amp;rsquo;s a video.&lt;/p&gt;
&lt;p&gt;Grayscale by default. Lights up on hover — different color every time, and the playback speed surges then eases back down. Like it just woke up.&lt;/p&gt;
&lt;h1 id="why"&gt;Why&lt;/h1&gt;
&lt;p&gt;The old logo was a static PNG. It felt lifeless. I had a short video clip lying around, so I swapped the static image for a video.&lt;/p&gt;
&lt;h1 id="mp4-has-no-alpha-channel"&gt;mp4 Has No Alpha Channel&lt;/h1&gt;
&lt;p&gt;CapCut removed the background on export, but mp4 doesn&amp;rsquo;t support transparency — it gets baked to black.&lt;/p&gt;</description></item><item><title>Mobile Website Tap Highlight or Gray Background Issue</title><link>https://time-friend.com/en/archive/mobile-tap-highlight-issue/</link><pubDate>Wed, 20 Apr 2016 19:33:33 +0000</pubDate><guid>https://time-friend.com/en/archive/mobile-tap-highlight-issue/</guid><description>&lt;p&gt;Mobile website tap highlight or gray background issue&lt;/p&gt;
&lt;p&gt;Simply add a class style to the bound event element to make the background transparent when the event is triggered&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-css" data-lang="css"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;.&lt;span style="color:#a6e22e"&gt;class&lt;/span&gt;{&lt;span style="color:#66d9ef"&gt;-webkit-&lt;/span&gt;tap-highlight-color:&lt;span style="color:#66d9ef"&gt;transparent&lt;/span&gt;;}
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description></item></channel></rss>