Skip to content

Commit

Permalink
Added Square shape color changing animation (#2277)
Browse files Browse the repository at this point in the history
* Square shape added

* Added square shape animation

* Delete Art/divyansharya8826/ezgif.com-video-to-gif.gif

* Update include.js
  • Loading branch information
divyansharya8826 authored Oct 30, 2023
1 parent 8401750 commit fb52e3b
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Art/divyansharya8826/index.css
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;
}
10 changes: 10 additions & 0 deletions Art/divyansharya8826/index.html
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>
Binary file added Art/divyansharya8826/square.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions include.js
Original file line number Diff line number Diff line change
Expand Up @@ -2585,6 +2585,13 @@ let cards = [
author: 'milesjorg',
githubLink: 'https://github.com/milesjorg'
},
{
artName: 'Square color changing animation',
pagelink: './Art/divyansharya8826/index.html',
imageLink: './Art/divyansharya8826/Square.gif',
author: 'divyansharya8826',
githubLink: 'https://github.com/divyansharya8826'
},
{
artName: 'Arrows',
pageLink: './Art/rudrakushwaha/index.html',
Expand Down

0 comments on commit fb52e3b

Please sign in to comment.