<?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>DEV Community: D7460N</title>
    <description>The latest articles on DEV Community by D7460N (@d7460n).</description>
    <link>https://dev.to/d7460n</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%2F157006%2F5e35a790-dd93-4a40-b824-06d898872cf8.jpg</url>
      <title>DEV Community: D7460N</title>
      <link>https://dev.to/d7460n</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/d7460n"/>
    <language>en</language>
    <item>
      <title>Short fun read on how make CSS do JS</title>
      <dc:creator>D7460N</dc:creator>
      <pubDate>Wed, 15 Oct 2025 17:05:54 +0000</pubDate>
      <link>https://dev.to/d7460n/short-fun-read-on-how-make-css-do-js-33hl</link>
      <guid>https://dev.to/d7460n/short-fun-read-on-how-make-css-do-js-33hl</guid>
      <description>&lt;p&gt;

&lt;/p&gt;
&lt;div class="ltag__link--embedded"&gt;
  &lt;div class="crayons-story "&gt;
  &lt;a href="https://dev.to/hairy-styles/styling-by-state-how-to-make-css-do-js-aen" class="crayons-story__hidden-navigation-link"&gt;Styling by State: How to make CSS do JS&lt;/a&gt;


  &lt;div class="crayons-story__body crayons-story__body-full_post"&gt;
    &lt;div class="crayons-story__top"&gt;
      &lt;div class="crayons-story__meta"&gt;
        &lt;div class="crayons-story__author-pic"&gt;

          &lt;a href="/hairy-styles" class="crayons-avatar  crayons-avatar--l  "&gt;
            &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3541705%2Fb09459a5-f2c1-479b-9bd3-1f5cc09290bf.jpg" alt="hairy-styles profile" class="crayons-avatar__image"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;div&gt;
            &lt;a href="/hairy-styles" class="crayons-story__secondary fw-medium m:hidden"&gt;
              Adam
            &lt;/a&gt;
            &lt;div class="profile-preview-card relative mb-4 s:mb-0 fw-medium hidden m:inline-block"&gt;
              
                Adam
                
              
              &lt;div id="story-author-preview-content-2926586" class="profile-preview-card__content crayons-dropdown branded-7 p-4 pt-0"&gt;
                &lt;div class="gap-4 grid"&gt;
                  &lt;div class="-mt-4"&gt;
                    &lt;a href="/hairy-styles" class="flex"&gt;
                      &lt;span class="crayons-avatar crayons-avatar--xl mr-2 shrink-0"&gt;
                        &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3541705%2Fb09459a5-f2c1-479b-9bd3-1f5cc09290bf.jpg" class="crayons-avatar__image" alt=""&gt;
                      &lt;/span&gt;
                      &lt;span class="crayons-link crayons-subtitle-2 mt-5"&gt;Adam&lt;/span&gt;
                    &lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="print-hidden"&gt;
                    
                      Follow
                    
                  &lt;/div&gt;
                  &lt;div class="author-preview-metadata-container"&gt;&lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;

          &lt;/div&gt;
          &lt;a href="https://dev.to/hairy-styles/styling-by-state-how-to-make-css-do-js-aen" class="crayons-story__tertiary fs-xs"&gt;&lt;time&gt;Oct 15 '25&lt;/time&gt;&lt;span class="time-ago-indicator-initial-placeholder"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;

    &lt;/div&gt;

    &lt;div class="crayons-story__indention"&gt;
      &lt;h2 class="crayons-story__title crayons-story__title-full_post"&gt;
        &lt;a href="https://dev.to/hairy-styles/styling-by-state-how-to-make-css-do-js-aen" id="article-link-2926586"&gt;
          Styling by State: How to make CSS do JS
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;div class="crayons-story__tags"&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/cleancode"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;cleancode&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/css"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;css&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/javascript"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;javascript&lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="crayons-story__bottom"&gt;
        &lt;div class="crayons-story__details"&gt;
          &lt;a href="https://dev.to/hairy-styles/styling-by-state-how-to-make-css-do-js-aen" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left"&gt;
            &lt;div class="multiple_reactions_aggregate"&gt;
              &lt;span class="multiple_reactions_icons_container"&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/raised-hands-74b2099fd66a39f2d7eed9305ee0f4553df0eb7b4f11b01b6b1b499973048fe5.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/multi-unicorn-b44d6f8c23cdd00964192bedc38af3e82463978aa611b4365bd33a0f1f4f3e97.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/sparkle-heart-5f9bee3767e18deb1bb725290cb151c25234768a0e9a2bd39370c382d02920cf.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
              &lt;/span&gt;
              &lt;span class="aggregate_reactions_counter"&gt;14&lt;span class="hidden s:inline"&gt; reactions&lt;/span&gt;&lt;/span&gt;
            &lt;/div&gt;
          &lt;/a&gt;
            &lt;a href="https://dev.to/hairy-styles/styling-by-state-how-to-make-css-do-js-aen#comments" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left flex items-center"&gt;
              Comments


              5&lt;span class="hidden s:inline"&gt; comments&lt;/span&gt;
            &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="crayons-story__save"&gt;
          &lt;small class="crayons-story__tertiary fs-xs mr-2"&gt;
            7 min read
          &lt;/small&gt;
            
              &lt;span class="bm-initial"&gt;
                

              &lt;/span&gt;
              &lt;span class="bm-success"&gt;
                

              &lt;/span&gt;
            
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;




</description>
      <category>cleancode</category>
      <category>css</category>
      <category>javascript</category>
    </item>
    <item>
      <title>[Boost]</title>
      <dc:creator>D7460N</dc:creator>
      <pubDate>Wed, 13 Aug 2025 13:46:59 +0000</pubDate>
      <link>https://dev.to/d7460n/-4o18</link>
      <guid>https://dev.to/d7460n/-4o18</guid>
      <description>&lt;div class="ltag__link--embedded"&gt;
  &lt;div class="crayons-story "&gt;
  &lt;a href="https://dev.to/henk_van_hoek/my-ai-co-pilot-has-no-common-sense-j7f" class="crayons-story__hidden-navigation-link"&gt;My AI Co-Pilot Has No Common Sense&lt;/a&gt;


  &lt;div class="crayons-story__body crayons-story__body-full_post"&gt;
    &lt;div class="crayons-story__top"&gt;
      &lt;div class="crayons-story__meta"&gt;
        &lt;div class="crayons-story__author-pic"&gt;

          &lt;a href="/henk_van_hoek" class="crayons-avatar  crayons-avatar--l  "&gt;
            &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3409305%2F90a424c9-9ea8-4278-a57d-57004c43b938.jpg" alt="henk_van_hoek profile" class="crayons-avatar__image"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;div&gt;
            &lt;a href="/henk_van_hoek" class="crayons-story__secondary fw-medium m:hidden"&gt;
              Henk van Hoek
            &lt;/a&gt;
            &lt;div class="profile-preview-card relative mb-4 s:mb-0 fw-medium hidden m:inline-block"&gt;
              
                Henk van Hoek
                
              
              &lt;div id="story-author-preview-content-2758951" class="profile-preview-card__content crayons-dropdown branded-7 p-4 pt-0"&gt;
                &lt;div class="gap-4 grid"&gt;
                  &lt;div class="-mt-4"&gt;
                    &lt;a href="/henk_van_hoek" class="flex"&gt;
                      &lt;span class="crayons-avatar crayons-avatar--xl mr-2 shrink-0"&gt;
                        &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3409305%2F90a424c9-9ea8-4278-a57d-57004c43b938.jpg" class="crayons-avatar__image" alt=""&gt;
                      &lt;/span&gt;
                      &lt;span class="crayons-link crayons-subtitle-2 mt-5"&gt;Henk van Hoek&lt;/span&gt;
                    &lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="print-hidden"&gt;
                    
                      Follow
                    
                  &lt;/div&gt;
                  &lt;div class="author-preview-metadata-container"&gt;&lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;

          &lt;/div&gt;
          &lt;a href="https://dev.to/henk_van_hoek/my-ai-co-pilot-has-no-common-sense-j7f" class="crayons-story__tertiary fs-xs"&gt;&lt;time&gt;Aug 7 '25&lt;/time&gt;&lt;span class="time-ago-indicator-initial-placeholder"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;

    &lt;/div&gt;

    &lt;div class="crayons-story__indention"&gt;
      &lt;h2 class="crayons-story__title crayons-story__title-full_post"&gt;
        &lt;a href="https://dev.to/henk_van_hoek/my-ai-co-pilot-has-no-common-sense-j7f" id="article-link-2758951"&gt;
          My AI Co-Pilot Has No Common Sense
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;div class="crayons-story__tags"&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/ai"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;ai&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/development"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;development&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/programming"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;programming&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/productivity"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;productivity&lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="crayons-story__bottom"&gt;
        &lt;div class="crayons-story__details"&gt;
          &lt;a href="https://dev.to/henk_van_hoek/my-ai-co-pilot-has-no-common-sense-j7f" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left"&gt;
            &lt;div class="multiple_reactions_aggregate"&gt;
              &lt;span class="multiple_reactions_icons_container"&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/fire-f60e7a582391810302117f987b22a8ef04a2fe0df7e3258a5f49332df1cec71e.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/raised-hands-74b2099fd66a39f2d7eed9305ee0f4553df0eb7b4f11b01b6b1b499973048fe5.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/sparkle-heart-5f9bee3767e18deb1bb725290cb151c25234768a0e9a2bd39370c382d02920cf.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
              &lt;/span&gt;
              &lt;span class="aggregate_reactions_counter"&gt;25&lt;span class="hidden s:inline"&gt; reactions&lt;/span&gt;&lt;/span&gt;
            &lt;/div&gt;
          &lt;/a&gt;
            &lt;a href="https://dev.to/henk_van_hoek/my-ai-co-pilot-has-no-common-sense-j7f#comments" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left flex items-center"&gt;
              Comments


              16&lt;span class="hidden s:inline"&gt; comments&lt;/span&gt;
            &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="crayons-story__save"&gt;
          &lt;small class="crayons-story__tertiary fs-xs mr-2"&gt;
            2 min read
          &lt;/small&gt;
            
              &lt;span class="bm-initial"&gt;
                

              &lt;/span&gt;
              &lt;span class="bm-success"&gt;
                

              &lt;/span&gt;
            
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;


</description>
      <category>ai</category>
      <category>development</category>
      <category>programming</category>
      <category>productivity</category>
    </item>
    <item>
      <title>How to animate or transition multiple linear-gradient backgrounds from a single element</title>
      <dc:creator>D7460N</dc:creator>
      <pubDate>Mon, 20 Jan 2020 20:46:01 +0000</pubDate>
      <link>https://dev.to/d7460n/how-to-animate-or-transition-multiple-linear-gradient-backgrounds-from-a-single-element-2m9</link>
      <guid>https://dev.to/d7460n/how-to-animate-or-transition-multiple-linear-gradient-backgrounds-from-a-single-element-2m9</guid>
      <description>&lt;p&gt;Trying to emulate this Codepen but with a single link element and the animated underline wraps with the text. &lt;a href="https://codepen.io/dragontheory/pen/JjorrKL" rel="noopener noreferrer"&gt;https://codepen.io/dragontheory/pen/JjorrKL&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frhetihk0f1cuepimd5p9.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frhetihk0f1cuepimd5p9.gif" alt="Text with animated underline" width="517" height="179"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;One way to have an underline wrap with the text is to use background linear gradients. Like this solid line at this Codepen...&lt;/p&gt;

&lt;p&gt;&lt;a href="https://codepen.io/dragontheory/pen/XWJydQE" rel="noopener noreferrer"&gt;https://codepen.io/dragontheory/pen/XWJydQE&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fum16jmdcy5tb581jh3io.JPG" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fum16jmdcy5tb581jh3io.JPG" alt="Underline that wraps with text." width="724" height="164"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then add &lt;strong&gt;three&lt;/strong&gt; identical background linear-gradients colored the same as the background. &lt;/p&gt;

&lt;p&gt;&lt;em&gt;Not sure if &lt;code&gt;backgroundColor&lt;/code&gt; or &lt;code&gt;currentBackgroundColor&lt;/code&gt; (like &lt;code&gt;currentColor&lt;/code&gt;) - is a valid property...&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Three identical 6x1 background linear gradient shapes:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;linear-gradient(backgroundColor, backgroundColor) left bottom / 6px 1px no-repeat,
linear-gradient(backgroundColor, backgroundColor) left bottom / 6px 1px no-repeat,
linear-gradient(backgroundColor, backgroundColor) left bottom / 6px 1px no-repeat;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then animate or transition them on top of the solid underline (from &lt;strong&gt;left bottom&lt;/strong&gt; to &lt;strong&gt;right bottom&lt;/strong&gt;), giving the illusion of broken lines. &lt;br&gt;
And then stagger them (see first Codepen above).&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  /* Staggered delay */
  animation: break01 2s infinite,
             break02 2s 0.5s infinite,
             break03 2s 1s infinite;

}
@-webkit-keyframes "break01" {
  from { background-position: left bottom; }
  to { background-position: right bottom; }
}
@-webkit-keyframes "break02" {
  from { background-position: left bottom; }
  to { background-position: right bottom; }
}
@-webkit-keyframes "break03" {
  from { background-position: left bottom; }
  to { background-position: right bottom; }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;So the question is &lt;strong&gt;how to animate or transition multiple linear-gradient backgrounds from a single element&lt;/strong&gt;?&lt;/p&gt;

&lt;p&gt;Hope that makes sense. &lt;/p&gt;

&lt;p&gt;No idea if this is the best way. Open to ideas. &lt;/p&gt;

&lt;p&gt;Anyone? &lt;/p&gt;

</description>
      <category>help</category>
      <category>css</category>
    </item>
    <item>
      <title>Pure CSS solution for detecting presence of child selector?</title>
      <dc:creator>D7460N</dc:creator>
      <pubDate>Thu, 21 Nov 2019 20:33:57 +0000</pubDate>
      <link>https://dev.to/d7460n/pure-css-solution-for-detecting-presence-of-child-selector-3ann</link>
      <guid>https://dev.to/d7460n/pure-css-solution-for-detecting-presence-of-child-selector-3ann</guid>
      <description>&lt;p&gt;Hello dev.to community! &lt;/p&gt;

&lt;p&gt;Thankful for you! Articles are very helpful. Learning so much! &lt;/p&gt;

&lt;p&gt;Trying to leverage CSS's "live-ness" (rather than JS poling) to detect the presence of a dynamically loaded child selector to change it's parent's sibling's width per the below scenario and CSS.&lt;/p&gt;

&lt;p&gt;Problem is that the CSS relational pseudo-class ":has" is &lt;a href="https://caniuse.com/#search=%3Ahas" rel="noopener noreferrer"&gt;not supported by any browsers&lt;/a&gt; yet. &lt;/p&gt;

&lt;p&gt;Would CSS variables or a pre-processor be able to handle the below scenario? Not used them yet.&lt;/p&gt;

&lt;p&gt;Probably making this too complicated. Open to more efficient ways/techniques.&lt;/p&gt;

&lt;p&gt;Any assistance is much appreciated. &lt;/p&gt;

&lt;p&gt;Thanks again for all that you do for our community!&lt;/p&gt;




&lt;p&gt;Scenario : :&lt;br&gt;&lt;br&gt;
Classic left to right master-detail, holy grail layout, using Bootstrap/Flexbox.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;End-user clicks a list item in &lt;code&gt;.results&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Dynamic content is loaded into &lt;code&gt;.details&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;.loaded&lt;/code&gt; class is loaded LAST into &lt;code&gt;.details&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The "Open State" CSS rule becomes TRUE.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;.details&lt;/code&gt; slides in from the right.&lt;/li&gt;
&lt;li&gt;End-user clicks "X" to close &lt;code&gt;.details&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;.loaded&lt;/code&gt; is removed from &lt;code&gt;.details&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The "Open State" CSS rule becomes FALSE.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;.details&lt;/code&gt; reverts to it's "Closed State" (default).&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;.details&lt;/code&gt; slides out to the right.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Hope that makes sense...&lt;/p&gt;



&lt;p&gt;CSS : :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/* Closed State (default) */
.results {
     flex: 0 0 auto;
     width: 0;
     transition: width 550ms ease;
}
/* Open State */
.details .loaded {     
     .results {          
          width: 25%;
     }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;HTML : :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;div class="results"&amp;gt;
     &amp;lt;div class="list-of-results"&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;

&amp;lt;div class="details"&amp;gt;
     &amp;lt;div class="dynamically-loaded-content **loaded**"&amp;gt;

     &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;                               '
             ( ON SCRN )       ' ( OFF SCRN )
                               '             _[ close btn ]
 _____ ________.results________'__.details__/
|     |                        |           x| 
|     |                        |            | When the child class
|     |                        | + .loaded  | '.loaded' is present in
|     |                      &amp;lt;-|---         | '.details', '.details' slides
|     |                        |            | on screen from right
|     |                        |            | 
|     |                        |            |
|     |                        | - .loaded  | When '.loaded' disappears
|     |                      --|--&amp;gt;         | '.details' slides off screen
|     |                        |            |
 ----- ------------------------ ------------

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>css</category>
      <category>flexbox</category>
      <category>layout</category>
      <category>variables</category>
    </item>
  </channel>
</rss>
