Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy does my animation have a sliver of color at the top?
    primarykey
    data
    text
    <p>I can't figure out why there is a small line of color above my icon in my CSS animation. It seems like it's making two different objects when it animates the icon and they are overlapping but off slightly. Not sure why it's doing that. I'm also using icomoon to generate the icons. I've attached a GIF to show the issue.</p> <p><img src="https://i.stack.imgur.com/i7RU1.gif" alt="Sliver of color above the icon"></p> <p>HTML</p> <pre><code>&lt;div class="resources"&gt; &lt;a href="/us/partners/resources/"&gt; &lt;div class="icon-area"&gt; &lt;i class="icon-channel-marketing-materials tera"&gt;&lt;/i&gt; &lt;span class="icon-channel-press"&gt;&lt;/span&gt; &lt;span class="icon-channel-screenshots"&gt;&lt;/span&gt; &lt;/div&gt; &lt;hr&gt; &lt;div class="desc"&gt; &lt;h3&gt;Gather Tools&lt;/h3&gt; &lt;p&gt;Browse go-to-market templates and customizable marketing materials.&lt;/p&gt; &lt;/div&gt; &lt;span class="step-number"&gt;2&lt;/span&gt; &lt;/a&gt; &lt;/div&gt; </code></pre> <p>CSS</p> <pre><code>/* Resources Step Animation */ .resources .icon-channel-press, .resources .icon-channel-screenshots { position: absolute; -webkit-transition: all 800ms 0.4s; -moz-transition: all 800ms 0.4s; -ms-transition: all 800ms 0.4s; -o-transition: all 800ms 0.4s; transition: all 800ms 0.4s; -webkit-transform: translate3d(0,0,0); color: #6D787F; } .resources .icon-channel-press { top: 100px; left: -30px; color: #5d8723; } .resources:hover .icon-channel-press { left:30px; top: 50px; font-size: 2.4em; } .resources .icon-channel-screenshots { top: 100px; right: -30px; color: #5d8723; } .resources:hover .icon-channel-screenshots { right:30px; top: 50px; font-size: 2.4em; } .resources:hover .icon-channel-marketing-materials { color: #8DC63F; -webkit-transition: color 800ms 0.4s; -moz-transition: color 800ms 0.4s; -ms-transition: color 800ms 0.4s; -o-transition: color 800ms 0.4s; transition: color 800ms 0.4s; } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload