Compilation of Finals Part 2

 Animation

<!DOCTYPE html>

<html>

<head> Animation 

 <style> 

div {

  width: 2000px;

  height: 100px;

  background-color: pink;

  animation-name: example;

  animation-duration: 10s;

}


@keyframes example {

  from {background-color: red;}

  to {background-color: blue;}

}


To make the animation transition, they keyframes are key, cuz they're named Keyframes. there you see From and To, which are self explanatory, so you use Keyframes to indicate what is the start and end of an animation with HTML.


Embedding a Youtube Video with IFrames


<iframe width="1080" height="720" src="https://www.youtube.com/embed/29ZBBsq6uSU">

</iframe>


Is all you need, you can insert this in the body of an HTML you are working on, change the link and it will play the video in the HTML, all you need is internet.

Comments

Popular posts from this blog

Animation Transition Activity

Adding A Youtube Link Embed

let's talk about Sketches