Want to put basic animation in HTML and CSS

I have a basic animation which is written in html and css which I would like to include on my page but I am not sure where to add it. I have tried sequentially adding it to all the html pages in the "Headers" section but it has had no effect.

Is there a reason why this would be happening? The code works perfectly off weebly. Does weebly prevent things like this?

Cheers

1,995 Views
Message 1 of 5
Report
4 REPLIES 4
Square

Hey @beno691! Which code have you been adding where? Generally speaking, you'll want your CSS to go in the Header Code field, and the HTML to be in an Embed Code element on the page.

1,974 Views
Message 2 of 5
Report

Weebly comment

 

Hey Adam, that's interesting...

 

The code I'm trying to insert is to make the page display an animation that fills the whole screen before any of the page elements appear (on the landing page)

 

I put the following code at the top of the main_style.css file:

 

@keyframes moveText {

  from {left: 100vw;}

  to {left: -250vw;}

}

 

@keyframes showHide {

  0% {opacity: 0;}

  80% {opacity: 0;}

  100% {opacity: 1;}

}

 

.mover {

  position: absolute;

  right: 100vw;

  animation-name: moveText;

  animation-duration: 6s;

}

 

.everythingElse {

  animation-name: showHide;

  animation-duration: 4s;

}

 

And I put this code into the header.html (in my case no_header.html because I don't use one on my site):

 

<div class="mover">

      <p class="bigtext">Diq&Bol</p>

    </div>

 

<div class="everythingelse">

<div id="header”>

 

 

I’m guessing if I put code in an embed element it won’t fill the entire screen? Which is what I want.

 

Any way to do this?

1,964 Views
Message 3 of 5
Report

Hello, Adam!

I am also trying to put a css animated bubbles into my header but it's not working. I don't know exactly where to place the coding so that the bubbles would appear only in the header part. Thanks!

Best,

Shermaine

1,631 Views
Message 6 of 5
Report
Square

Hi Shermaine. Can you please post the code and url to your site? Another user may be able to help you out with this. 

1,627 Views
Message 6 of 5
Report