<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: jordanjlatimer</title>
    <description>The latest articles on Forem by jordanjlatimer (@jordanjlatimer).</description>
    <link>https://forem.com/jordanjlatimer</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F452747%2Ff511e5a3-dbb2-4618-be00-8532cc01538b.png</url>
      <title>Forem: jordanjlatimer</title>
      <link>https://forem.com/jordanjlatimer</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/jordanjlatimer"/>
    <language>en</language>
    <item>
      <title>CSS Hover Transitions Part 1</title>
      <dc:creator>jordanjlatimer</dc:creator>
      <pubDate>Fri, 04 Sep 2020 22:42:36 +0000</pubDate>
      <link>https://forem.com/jordanjlatimer/css-hover-transitions-i-like-3ppa</link>
      <guid>https://forem.com/jordanjlatimer/css-hover-transitions-i-like-3ppa</guid>
      <description>&lt;p&gt;Some of my favorite things to style with CSS are hover effects, in part because they are so easy to apply. Here are a list of CSS properties that work well when changed with the CSS &lt;code&gt;hover&lt;/code&gt; selector, transitioning in and out of the hover state seamlessly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Color
&lt;/h2&gt;

&lt;p&gt;Changing the color works especially well when used with other effects.&lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/jordanjlatimer/embed/poydGLO?height=600&amp;amp;default-tab=css,result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  Background Color
&lt;/h2&gt;

&lt;p&gt;I prefer it when the color gets lighter on hover, like so:&lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/jordanjlatimer/embed/qBZVLKQ?height=600&amp;amp;default-tab=css,result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  Border Color
&lt;/h2&gt;

&lt;p&gt;Note that I said border &lt;em&gt;color&lt;/em&gt; rather than just adding a border. If you don't have a border and then add it on hover, you'll notice that the element may resize in the process. Additionally, the border instantly removes itself after hover instead of gradually. Notice the difference between the two elements in this CodePen:  &lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/jordanjlatimer/embed/dyMZaKM?height=600&amp;amp;default-tab=css,result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  Border Radius
&lt;/h2&gt;

&lt;p&gt;Notice how just by changing the border radius, we can tranform a button-shaped &lt;code&gt;div&lt;/code&gt; into a tab shaped one.&lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/jordanjlatimer/embed/vYGWbvg?height=600&amp;amp;default-tab=css,result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  Letter Spacing
&lt;/h2&gt;

&lt;p&gt;This is one of my favorites, as it can make a button or other element really come alive. Note, however, that unless you are ok with your element resizing horizontally, you will need to make sure that your text has space to grow. Notice how the top element is able to accommodate the increased letter spacing without resizing while the bottom one is not.&lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/jordanjlatimer/embed/qBZVvba?height=600&amp;amp;default-tab=css,result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  Text Shadow
&lt;/h2&gt;

&lt;p&gt;A shadow can give the text a nice 3D effect.&lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/jordanjlatimer/embed/LYNOaPR?height=600&amp;amp;default-tab=css,result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  Box Shadow
&lt;/h2&gt;

&lt;p&gt;A shadow can give an element a nice 3D effect as well:&lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/jordanjlatimer/embed/ZEWaPKY?height=600&amp;amp;default-tab=css,result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  All Together, Now
&lt;/h2&gt;

&lt;p&gt;Just for fun, let's combine all the effects together:&lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/jordanjlatimer/embed/ExKbMvy?height=600&amp;amp;default-tab=css,result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Haha So, perhaps all of them together is a bit overkill, but a few of them combined can really bring new life to an otherwise dull design. Of course, hover effects don't work on mobile devices, so a large chunk of users won't even see them, but they are fun to play with nonetheless.&lt;/p&gt;

</description>
      <category>css</category>
      <category>html</category>
      <category>webdev</category>
      <category>firstyearincode</category>
    </item>
  </channel>
</rss>
