-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Square shape color changing animation (#2277)
* Square shape added * Added square shape animation * Delete Art/divyansharya8826/ezgif.com-video-to-gif.gif * Update include.js
- Loading branch information
1 parent
8401750
commit fb52e3b
Showing
4 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@keyframes ani | ||
{ | ||
0%{background-color: black; left: 0; top: 0;} | ||
25%{background-color: aqua; left: 30px; top: 30px;} | ||
50%{background-color: blanchedalmond;left: 60px; top: 60px;} | ||
75%{background-color: blue; left: 90px; top: 90px;} | ||
100%{background-color: red; left: 120px; top: 120px;} | ||
} | ||
#sqr | ||
{ | ||
background-color:aqua; | ||
margin: 20px 30px; | ||
width: 100px; | ||
height: 100px; | ||
transition-property: width height background-color; | ||
transition-duration: 2s; | ||
animation: ani 20s infinite; | ||
position: absolute; | ||
} | ||
#sqr:hover{ | ||
width: 200px; | ||
height: 200px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Square shape</title> | ||
<link rel="stylesheet" type="text/css" href="index.css"/> | ||
</head> | ||
<body> | ||
<div id="sqr"></div> | ||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters