Fill font awesome icon with loading animation The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) The Ask Question Wizard is Live! Data science time! April 2019 and salary with experienceSVG clipping mask not working as expectedMake a div fill the height of the remaining screen spaceHow to add some non-standard font to a website?How to style icon color, size, and shadow of Font Awesome IconsFont Awesome not working, icons showing as squaresUse Font Awesome Icons in CSSFont scaling based on width of containerHow to center text vertically with a large font-awesome icon?Use font awesome icon as CSS contentHow to get rid of jquery glitch effect?Can't determine CSS' transform scale starting point

What was the last x86 CPU that did not have the x87 floating-point unit built in?

First use of “packing” as in carrying a gun

Cooking pasta in a water boiler

What's the point in a preamp?

Single author papers against my advisor's will?

In horse breeding, what is the female equivalent of putting a horse out "to stud"?

How do I add random spotting to the same face in cycles?

Make it rain characters

Can a 1st-level character have an ability score above 18?

Sort a list of pairs representing an acyclic, partial automorphism

The variadic template constructor of my class cannot modify my class members, why is that so?

Did the UK government pay "millions and millions of dollars" to try to snag Julian Assange?

What is special about square numbers here?

What are these Gizmos at Izaña Atmospheric Research Center in Spain?

does high air pressure throw off wheel balance?

Why does this iterative way of solving of equation work?

How is simplicity better than precision and clarity in prose?

Is above average number of years spent on PhD considered a red flag in future academia or industry positions?

Take groceries in checked luggage

What can I do if neighbor is blocking my solar panels intentionally?

Segmentation fault output is suppressed when piping stdin into a function. Why?

Is it ok to offer lower paid work as a trial period before negotiating for a full-time job?

How can I protect witches in combat who wear limited clothing?

Relations between two reciprocal partial derivatives?



Fill font awesome icon with loading animation



The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
The Ask Question Wizard is Live!
Data science time! April 2019 and salary with experienceSVG clipping mask not working as expectedMake a div fill the height of the remaining screen spaceHow to add some non-standard font to a website?How to style icon color, size, and shadow of Font Awesome IconsFont Awesome not working, icons showing as squaresUse Font Awesome Icons in CSSFont scaling based on width of containerHow to center text vertically with a large font-awesome icon?Use font awesome icon as CSS contentHow to get rid of jquery glitch effect?Can't determine CSS' transform scale starting point



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















Issue



I am trying to use a font awesome icon fas fa-cannabis and add a fill effect, now I have part of the CSS down, I can see the loading animation but I can't get it to fill inside the font awesome icon. So all I basically want to do is put that fill effect that you can see below inside of the font awesome icon.



Here is the CodePen for the question



At the moment it is sitting underneath the font awesome icon. Which you can see below:
Failed loading effect




Code



So my HTML is as follows:



<i class="fas fa-cannabis" id="banner">
<div class="fill">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="300px" height="300px" viewBox="0 0 300 300" enable-background="new 0 0 300 300" xml:space="preserve">
<path fill="#04ACFF" id="waveShape" d="M300,300V2.5c0,0-0.6-0.1-1.1-0.1c0,0-25.5-2.3-40.5-2.4c-15,0-40.6,2.4-40.6,2.4
c-12.3,1.1-30.3,1.8-31.9,1.9c-2-0.1-19.7-0.8-32-1.9c0,0-25.8-2.3-40.8-2.4c-15,0-40.8,2.4-40.8,2.4c-12.3,1.1-30.4,1.8-32,1.9
c-2-0.1-20-0.8-32.2-1.9c0,0-3.1-0.3-8.1-0.7V300H300z"/>
</svg>
</div>
</i>


With the following CSS that is creating the fill effect:



#banner 
width: 150px;
height: 150px;
overflow: hidden;
backface-visibility: hidden;
transform: translate3d(0, 0, 0);

#banner .fill
animation-name: fillAction;
animation-iteration-count: 1;
animation-timing-function: cubic-bezier(.2, .6, .8, .4);
animation-duration: 4s;
animation-fill-mode: forwards;

#banner #waveShape
animation-name: waveAction;
animation-iteration-count: infinite;
animation-timing-function: linear;
animation-duration: 0.5s;
width:300px;
height: 150px;
fill: #04ACFF;

@keyframes fillAction
0%
transform: translate(0, 150px);

100%
transform: translate(0, -5px);


@keyframes waveAction
0%
transform: translate(-150px, 0);

100%
transform: translate(0, 0);











share|improve this question






























    0















    Issue



    I am trying to use a font awesome icon fas fa-cannabis and add a fill effect, now I have part of the CSS down, I can see the loading animation but I can't get it to fill inside the font awesome icon. So all I basically want to do is put that fill effect that you can see below inside of the font awesome icon.



    Here is the CodePen for the question



    At the moment it is sitting underneath the font awesome icon. Which you can see below:
    Failed loading effect




    Code



    So my HTML is as follows:



    <i class="fas fa-cannabis" id="banner">
    <div class="fill">
    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="300px" height="300px" viewBox="0 0 300 300" enable-background="new 0 0 300 300" xml:space="preserve">
    <path fill="#04ACFF" id="waveShape" d="M300,300V2.5c0,0-0.6-0.1-1.1-0.1c0,0-25.5-2.3-40.5-2.4c-15,0-40.6,2.4-40.6,2.4
    c-12.3,1.1-30.3,1.8-31.9,1.9c-2-0.1-19.7-0.8-32-1.9c0,0-25.8-2.3-40.8-2.4c-15,0-40.8,2.4-40.8,2.4c-12.3,1.1-30.4,1.8-32,1.9
    c-2-0.1-20-0.8-32.2-1.9c0,0-3.1-0.3-8.1-0.7V300H300z"/>
    </svg>
    </div>
    </i>


    With the following CSS that is creating the fill effect:



    #banner 
    width: 150px;
    height: 150px;
    overflow: hidden;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);

    #banner .fill
    animation-name: fillAction;
    animation-iteration-count: 1;
    animation-timing-function: cubic-bezier(.2, .6, .8, .4);
    animation-duration: 4s;
    animation-fill-mode: forwards;

    #banner #waveShape
    animation-name: waveAction;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    animation-duration: 0.5s;
    width:300px;
    height: 150px;
    fill: #04ACFF;

    @keyframes fillAction
    0%
    transform: translate(0, 150px);

    100%
    transform: translate(0, -5px);


    @keyframes waveAction
    0%
    transform: translate(-150px, 0);

    100%
    transform: translate(0, 0);











    share|improve this question


























      0












      0








      0








      Issue



      I am trying to use a font awesome icon fas fa-cannabis and add a fill effect, now I have part of the CSS down, I can see the loading animation but I can't get it to fill inside the font awesome icon. So all I basically want to do is put that fill effect that you can see below inside of the font awesome icon.



      Here is the CodePen for the question



      At the moment it is sitting underneath the font awesome icon. Which you can see below:
      Failed loading effect




      Code



      So my HTML is as follows:



      <i class="fas fa-cannabis" id="banner">
      <div class="fill">
      <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="300px" height="300px" viewBox="0 0 300 300" enable-background="new 0 0 300 300" xml:space="preserve">
      <path fill="#04ACFF" id="waveShape" d="M300,300V2.5c0,0-0.6-0.1-1.1-0.1c0,0-25.5-2.3-40.5-2.4c-15,0-40.6,2.4-40.6,2.4
      c-12.3,1.1-30.3,1.8-31.9,1.9c-2-0.1-19.7-0.8-32-1.9c0,0-25.8-2.3-40.8-2.4c-15,0-40.8,2.4-40.8,2.4c-12.3,1.1-30.4,1.8-32,1.9
      c-2-0.1-20-0.8-32.2-1.9c0,0-3.1-0.3-8.1-0.7V300H300z"/>
      </svg>
      </div>
      </i>


      With the following CSS that is creating the fill effect:



      #banner 
      width: 150px;
      height: 150px;
      overflow: hidden;
      backface-visibility: hidden;
      transform: translate3d(0, 0, 0);

      #banner .fill
      animation-name: fillAction;
      animation-iteration-count: 1;
      animation-timing-function: cubic-bezier(.2, .6, .8, .4);
      animation-duration: 4s;
      animation-fill-mode: forwards;

      #banner #waveShape
      animation-name: waveAction;
      animation-iteration-count: infinite;
      animation-timing-function: linear;
      animation-duration: 0.5s;
      width:300px;
      height: 150px;
      fill: #04ACFF;

      @keyframes fillAction
      0%
      transform: translate(0, 150px);

      100%
      transform: translate(0, -5px);


      @keyframes waveAction
      0%
      transform: translate(-150px, 0);

      100%
      transform: translate(0, 0);











      share|improve this question
















      Issue



      I am trying to use a font awesome icon fas fa-cannabis and add a fill effect, now I have part of the CSS down, I can see the loading animation but I can't get it to fill inside the font awesome icon. So all I basically want to do is put that fill effect that you can see below inside of the font awesome icon.



      Here is the CodePen for the question



      At the moment it is sitting underneath the font awesome icon. Which you can see below:
      Failed loading effect




      Code



      So my HTML is as follows:



      <i class="fas fa-cannabis" id="banner">
      <div class="fill">
      <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="300px" height="300px" viewBox="0 0 300 300" enable-background="new 0 0 300 300" xml:space="preserve">
      <path fill="#04ACFF" id="waveShape" d="M300,300V2.5c0,0-0.6-0.1-1.1-0.1c0,0-25.5-2.3-40.5-2.4c-15,0-40.6,2.4-40.6,2.4
      c-12.3,1.1-30.3,1.8-31.9,1.9c-2-0.1-19.7-0.8-32-1.9c0,0-25.8-2.3-40.8-2.4c-15,0-40.8,2.4-40.8,2.4c-12.3,1.1-30.4,1.8-32,1.9
      c-2-0.1-20-0.8-32.2-1.9c0,0-3.1-0.3-8.1-0.7V300H300z"/>
      </svg>
      </div>
      </i>


      With the following CSS that is creating the fill effect:



      #banner 
      width: 150px;
      height: 150px;
      overflow: hidden;
      backface-visibility: hidden;
      transform: translate3d(0, 0, 0);

      #banner .fill
      animation-name: fillAction;
      animation-iteration-count: 1;
      animation-timing-function: cubic-bezier(.2, .6, .8, .4);
      animation-duration: 4s;
      animation-fill-mode: forwards;

      #banner #waveShape
      animation-name: waveAction;
      animation-iteration-count: infinite;
      animation-timing-function: linear;
      animation-duration: 0.5s;
      width:300px;
      height: 150px;
      fill: #04ACFF;

      @keyframes fillAction
      0%
      transform: translate(0, 150px);

      100%
      transform: translate(0, -5px);


      @keyframes waveAction
      0%
      transform: translate(-150px, 0);

      100%
      transform: translate(0, 0);








      html css






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 22 at 7:36







      Tachyon

















      asked Mar 22 at 6:44









      TachyonTachyon

      793515




      793515






















          2 Answers
          2






          active

          oldest

          votes


















          1














          You can use mix-blend-mode:screen; For this I'm wrapping both the i and the fill in a div and set iposition:absolute. Please take a look at the codepen demo



          #wrapheight: 150px;
          width:150px;
          overflow: hidden;
          border:1px solid;

          #banner
          height: 150px;
          width:150px;


          .fill
          animation-name: fillAction;
          animation-iteration-count: 1;
          animation-timing-function: cubic-bezier(.2, .6, .8, .4);
          animation-duration: 4s;
          animation-fill-mode: forwards;
          mix-blend-mode:screen;

          #waveShape
          animation-name: waveAction;
          animation-iteration-count: infinite;
          animation-timing-function: linear;
          animation-duration: 0.5s;
          width:300px;
          height: 150px;
          fill: #04ACFF;


          @keyframes fillAction
          0%
          transform: translate(0, 150px);

          100%
          transform: translate(0, -5px);


          @keyframes waveAction
          0%
          transform: translate(-150px, 0);

          100%
          transform: translate(0, 0);


          ifont-size:147px; background:#fff;


          #wrap iposition:absolute


          <div id="wrap">
          <i class="fas fa-cannabis" id="banner"></i>
          <div class="fill">
          <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="300px" viewBox="0 0 300 300" enable-background="new 0 0 300 300" xml:space="preserve">
          <path fill="#04ACFF" id="waveShape" d="M300,300V2.5c0,0-0.6-0.1-1.1-0.1c0,0-25.5-2.3-40.5-2.4c-15,0-40.6,2.4-40.6,2.4
          c-12.3,1.1-30.3,1.8-31.9,1.9c-2-0.1-19.7-0.8-32-1.9c0,0-25.8-2.3-40.8-2.4c-15,0-40.8,2.4-40.8,2.4c-12.3,1.1-30.4,1.8-32,1.9
          c-2-0.1-20-0.8-32.2-1.9c0,0-3.1-0.3-8.1-0.7V300H300z"/>
          </svg>
          </div>
          </div>





          share|improve this answer























          • That's brilliant! Thank you very much.

            – Tachyon
            Mar 22 at 9:54


















          0














          You might need to use clipping paths to apply the fill only to the icon. You might also need to use an svg rather than an icon...



          This article has some interesting info that may help: https://css-tricks.com/masking-vs-clipping-use/






          share|improve this answer

























          • Unfortunately didn't make a difference. I can create an example in codepen if that will help?

            – Tachyon
            Mar 22 at 7:31











          • sure. I created one myself. codepen.io/johncurtin/pen/oVJvOb

            – lukeocom
            Mar 22 at 7:33











          • Here is mine: codepen.io/pierrepdp/pen/gEZOYx

            – Tachyon
            Mar 22 at 7:36











          • looks like the inline width and height of the svg tag is causing part of the problem,

            – lukeocom
            Mar 22 at 7:37






          • 1





            Think I am going to have to go the SVG route to be able to clip the animation.

            – Tachyon
            Mar 22 at 7:57











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55294214%2ffill-font-awesome-icon-with-loading-animation%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          You can use mix-blend-mode:screen; For this I'm wrapping both the i and the fill in a div and set iposition:absolute. Please take a look at the codepen demo



          #wrapheight: 150px;
          width:150px;
          overflow: hidden;
          border:1px solid;

          #banner
          height: 150px;
          width:150px;


          .fill
          animation-name: fillAction;
          animation-iteration-count: 1;
          animation-timing-function: cubic-bezier(.2, .6, .8, .4);
          animation-duration: 4s;
          animation-fill-mode: forwards;
          mix-blend-mode:screen;

          #waveShape
          animation-name: waveAction;
          animation-iteration-count: infinite;
          animation-timing-function: linear;
          animation-duration: 0.5s;
          width:300px;
          height: 150px;
          fill: #04ACFF;


          @keyframes fillAction
          0%
          transform: translate(0, 150px);

          100%
          transform: translate(0, -5px);


          @keyframes waveAction
          0%
          transform: translate(-150px, 0);

          100%
          transform: translate(0, 0);


          ifont-size:147px; background:#fff;


          #wrap iposition:absolute


          <div id="wrap">
          <i class="fas fa-cannabis" id="banner"></i>
          <div class="fill">
          <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="300px" viewBox="0 0 300 300" enable-background="new 0 0 300 300" xml:space="preserve">
          <path fill="#04ACFF" id="waveShape" d="M300,300V2.5c0,0-0.6-0.1-1.1-0.1c0,0-25.5-2.3-40.5-2.4c-15,0-40.6,2.4-40.6,2.4
          c-12.3,1.1-30.3,1.8-31.9,1.9c-2-0.1-19.7-0.8-32-1.9c0,0-25.8-2.3-40.8-2.4c-15,0-40.8,2.4-40.8,2.4c-12.3,1.1-30.4,1.8-32,1.9
          c-2-0.1-20-0.8-32.2-1.9c0,0-3.1-0.3-8.1-0.7V300H300z"/>
          </svg>
          </div>
          </div>





          share|improve this answer























          • That's brilliant! Thank you very much.

            – Tachyon
            Mar 22 at 9:54















          1














          You can use mix-blend-mode:screen; For this I'm wrapping both the i and the fill in a div and set iposition:absolute. Please take a look at the codepen demo



          #wrapheight: 150px;
          width:150px;
          overflow: hidden;
          border:1px solid;

          #banner
          height: 150px;
          width:150px;


          .fill
          animation-name: fillAction;
          animation-iteration-count: 1;
          animation-timing-function: cubic-bezier(.2, .6, .8, .4);
          animation-duration: 4s;
          animation-fill-mode: forwards;
          mix-blend-mode:screen;

          #waveShape
          animation-name: waveAction;
          animation-iteration-count: infinite;
          animation-timing-function: linear;
          animation-duration: 0.5s;
          width:300px;
          height: 150px;
          fill: #04ACFF;


          @keyframes fillAction
          0%
          transform: translate(0, 150px);

          100%
          transform: translate(0, -5px);


          @keyframes waveAction
          0%
          transform: translate(-150px, 0);

          100%
          transform: translate(0, 0);


          ifont-size:147px; background:#fff;


          #wrap iposition:absolute


          <div id="wrap">
          <i class="fas fa-cannabis" id="banner"></i>
          <div class="fill">
          <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="300px" viewBox="0 0 300 300" enable-background="new 0 0 300 300" xml:space="preserve">
          <path fill="#04ACFF" id="waveShape" d="M300,300V2.5c0,0-0.6-0.1-1.1-0.1c0,0-25.5-2.3-40.5-2.4c-15,0-40.6,2.4-40.6,2.4
          c-12.3,1.1-30.3,1.8-31.9,1.9c-2-0.1-19.7-0.8-32-1.9c0,0-25.8-2.3-40.8-2.4c-15,0-40.8,2.4-40.8,2.4c-12.3,1.1-30.4,1.8-32,1.9
          c-2-0.1-20-0.8-32.2-1.9c0,0-3.1-0.3-8.1-0.7V300H300z"/>
          </svg>
          </div>
          </div>





          share|improve this answer























          • That's brilliant! Thank you very much.

            – Tachyon
            Mar 22 at 9:54













          1












          1








          1







          You can use mix-blend-mode:screen; For this I'm wrapping both the i and the fill in a div and set iposition:absolute. Please take a look at the codepen demo



          #wrapheight: 150px;
          width:150px;
          overflow: hidden;
          border:1px solid;

          #banner
          height: 150px;
          width:150px;


          .fill
          animation-name: fillAction;
          animation-iteration-count: 1;
          animation-timing-function: cubic-bezier(.2, .6, .8, .4);
          animation-duration: 4s;
          animation-fill-mode: forwards;
          mix-blend-mode:screen;

          #waveShape
          animation-name: waveAction;
          animation-iteration-count: infinite;
          animation-timing-function: linear;
          animation-duration: 0.5s;
          width:300px;
          height: 150px;
          fill: #04ACFF;


          @keyframes fillAction
          0%
          transform: translate(0, 150px);

          100%
          transform: translate(0, -5px);


          @keyframes waveAction
          0%
          transform: translate(-150px, 0);

          100%
          transform: translate(0, 0);


          ifont-size:147px; background:#fff;


          #wrap iposition:absolute


          <div id="wrap">
          <i class="fas fa-cannabis" id="banner"></i>
          <div class="fill">
          <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="300px" viewBox="0 0 300 300" enable-background="new 0 0 300 300" xml:space="preserve">
          <path fill="#04ACFF" id="waveShape" d="M300,300V2.5c0,0-0.6-0.1-1.1-0.1c0,0-25.5-2.3-40.5-2.4c-15,0-40.6,2.4-40.6,2.4
          c-12.3,1.1-30.3,1.8-31.9,1.9c-2-0.1-19.7-0.8-32-1.9c0,0-25.8-2.3-40.8-2.4c-15,0-40.8,2.4-40.8,2.4c-12.3,1.1-30.4,1.8-32,1.9
          c-2-0.1-20-0.8-32.2-1.9c0,0-3.1-0.3-8.1-0.7V300H300z"/>
          </svg>
          </div>
          </div>





          share|improve this answer













          You can use mix-blend-mode:screen; For this I'm wrapping both the i and the fill in a div and set iposition:absolute. Please take a look at the codepen demo



          #wrapheight: 150px;
          width:150px;
          overflow: hidden;
          border:1px solid;

          #banner
          height: 150px;
          width:150px;


          .fill
          animation-name: fillAction;
          animation-iteration-count: 1;
          animation-timing-function: cubic-bezier(.2, .6, .8, .4);
          animation-duration: 4s;
          animation-fill-mode: forwards;
          mix-blend-mode:screen;

          #waveShape
          animation-name: waveAction;
          animation-iteration-count: infinite;
          animation-timing-function: linear;
          animation-duration: 0.5s;
          width:300px;
          height: 150px;
          fill: #04ACFF;


          @keyframes fillAction
          0%
          transform: translate(0, 150px);

          100%
          transform: translate(0, -5px);


          @keyframes waveAction
          0%
          transform: translate(-150px, 0);

          100%
          transform: translate(0, 0);


          ifont-size:147px; background:#fff;


          #wrap iposition:absolute


          <div id="wrap">
          <i class="fas fa-cannabis" id="banner"></i>
          <div class="fill">
          <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="300px" viewBox="0 0 300 300" enable-background="new 0 0 300 300" xml:space="preserve">
          <path fill="#04ACFF" id="waveShape" d="M300,300V2.5c0,0-0.6-0.1-1.1-0.1c0,0-25.5-2.3-40.5-2.4c-15,0-40.6,2.4-40.6,2.4
          c-12.3,1.1-30.3,1.8-31.9,1.9c-2-0.1-19.7-0.8-32-1.9c0,0-25.8-2.3-40.8-2.4c-15,0-40.8,2.4-40.8,2.4c-12.3,1.1-30.4,1.8-32,1.9
          c-2-0.1-20-0.8-32.2-1.9c0,0-3.1-0.3-8.1-0.7V300H300z"/>
          </svg>
          </div>
          </div>






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 22 at 9:38









          enxanetaenxaneta

          10.2k2720




          10.2k2720












          • That's brilliant! Thank you very much.

            – Tachyon
            Mar 22 at 9:54

















          • That's brilliant! Thank you very much.

            – Tachyon
            Mar 22 at 9:54
















          That's brilliant! Thank you very much.

          – Tachyon
          Mar 22 at 9:54





          That's brilliant! Thank you very much.

          – Tachyon
          Mar 22 at 9:54













          0














          You might need to use clipping paths to apply the fill only to the icon. You might also need to use an svg rather than an icon...



          This article has some interesting info that may help: https://css-tricks.com/masking-vs-clipping-use/






          share|improve this answer

























          • Unfortunately didn't make a difference. I can create an example in codepen if that will help?

            – Tachyon
            Mar 22 at 7:31











          • sure. I created one myself. codepen.io/johncurtin/pen/oVJvOb

            – lukeocom
            Mar 22 at 7:33











          • Here is mine: codepen.io/pierrepdp/pen/gEZOYx

            – Tachyon
            Mar 22 at 7:36











          • looks like the inline width and height of the svg tag is causing part of the problem,

            – lukeocom
            Mar 22 at 7:37






          • 1





            Think I am going to have to go the SVG route to be able to clip the animation.

            – Tachyon
            Mar 22 at 7:57















          0














          You might need to use clipping paths to apply the fill only to the icon. You might also need to use an svg rather than an icon...



          This article has some interesting info that may help: https://css-tricks.com/masking-vs-clipping-use/






          share|improve this answer

























          • Unfortunately didn't make a difference. I can create an example in codepen if that will help?

            – Tachyon
            Mar 22 at 7:31











          • sure. I created one myself. codepen.io/johncurtin/pen/oVJvOb

            – lukeocom
            Mar 22 at 7:33











          • Here is mine: codepen.io/pierrepdp/pen/gEZOYx

            – Tachyon
            Mar 22 at 7:36











          • looks like the inline width and height of the svg tag is causing part of the problem,

            – lukeocom
            Mar 22 at 7:37






          • 1





            Think I am going to have to go the SVG route to be able to clip the animation.

            – Tachyon
            Mar 22 at 7:57













          0












          0








          0







          You might need to use clipping paths to apply the fill only to the icon. You might also need to use an svg rather than an icon...



          This article has some interesting info that may help: https://css-tricks.com/masking-vs-clipping-use/






          share|improve this answer















          You might need to use clipping paths to apply the fill only to the icon. You might also need to use an svg rather than an icon...



          This article has some interesting info that may help: https://css-tricks.com/masking-vs-clipping-use/







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Mar 22 at 7:55

























          answered Mar 22 at 7:27









          lukeocomlukeocom

          2,75131228




          2,75131228












          • Unfortunately didn't make a difference. I can create an example in codepen if that will help?

            – Tachyon
            Mar 22 at 7:31











          • sure. I created one myself. codepen.io/johncurtin/pen/oVJvOb

            – lukeocom
            Mar 22 at 7:33











          • Here is mine: codepen.io/pierrepdp/pen/gEZOYx

            – Tachyon
            Mar 22 at 7:36











          • looks like the inline width and height of the svg tag is causing part of the problem,

            – lukeocom
            Mar 22 at 7:37






          • 1





            Think I am going to have to go the SVG route to be able to clip the animation.

            – Tachyon
            Mar 22 at 7:57

















          • Unfortunately didn't make a difference. I can create an example in codepen if that will help?

            – Tachyon
            Mar 22 at 7:31











          • sure. I created one myself. codepen.io/johncurtin/pen/oVJvOb

            – lukeocom
            Mar 22 at 7:33











          • Here is mine: codepen.io/pierrepdp/pen/gEZOYx

            – Tachyon
            Mar 22 at 7:36











          • looks like the inline width and height of the svg tag is causing part of the problem,

            – lukeocom
            Mar 22 at 7:37






          • 1





            Think I am going to have to go the SVG route to be able to clip the animation.

            – Tachyon
            Mar 22 at 7:57
















          Unfortunately didn't make a difference. I can create an example in codepen if that will help?

          – Tachyon
          Mar 22 at 7:31





          Unfortunately didn't make a difference. I can create an example in codepen if that will help?

          – Tachyon
          Mar 22 at 7:31













          sure. I created one myself. codepen.io/johncurtin/pen/oVJvOb

          – lukeocom
          Mar 22 at 7:33





          sure. I created one myself. codepen.io/johncurtin/pen/oVJvOb

          – lukeocom
          Mar 22 at 7:33













          Here is mine: codepen.io/pierrepdp/pen/gEZOYx

          – Tachyon
          Mar 22 at 7:36





          Here is mine: codepen.io/pierrepdp/pen/gEZOYx

          – Tachyon
          Mar 22 at 7:36













          looks like the inline width and height of the svg tag is causing part of the problem,

          – lukeocom
          Mar 22 at 7:37





          looks like the inline width and height of the svg tag is causing part of the problem,

          – lukeocom
          Mar 22 at 7:37




          1




          1





          Think I am going to have to go the SVG route to be able to clip the animation.

          – Tachyon
          Mar 22 at 7:57





          Think I am going to have to go the SVG route to be able to clip the animation.

          – Tachyon
          Mar 22 at 7:57

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55294214%2ffill-font-awesome-icon-with-loading-animation%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

          은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현