Skip to content

Commit

Permalink
adding my animation (#2428)
Browse files Browse the repository at this point in the history
Co-authored-by: Sophia Brandt <16630701+sophiabrandt@users.noreply.github.com>
  • Loading branch information
daniloslovic17 and sophiabrandt committed Nov 12, 2023
1 parent 718d76b commit d046110
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 1 deletion.
Binary file added Art/daniloslovic17/danimation.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions Art/daniloslovic17/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Danimation</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="dvd">
<div class="box">
<h1>DVD</h1>
<div class="video-background">
<h2>VIDEO</h2>
</div>
</div>
</div>
</body>
</html>
76 changes: 76 additions & 0 deletions Art/daniloslovic17/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
body{
margin: 0;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
min-height: 100vh;
}

.box{
border-radius: 30px;
width: 230px;
height: 175px;
background: blueviolet;
position: absolute;
-webkit-animation: moveX 2s linear 0s infinite alternate, moveY 3.4s linear 0s infinite alternate;
-moz-animation: moveX 2s linear 0s infinite alternate, moveY 3.4s linear 0s infinite alternate;
-o-animation: moveX 2s linear 0s infinite alternate, moveY 3.4s linear 0s infinite alternate;
animation: moveX 2s linear 0s infinite alternate, moveY 3.4s linear 0s infinite alternate;
}

.dvd{
margin: 0 auto;
background-color: #0078D7;
position: relative;
width: 711px;
height: 509px;
}

h1{
font-size: 54px;
font-weight: 900;
font-style: italic;
margin-bottom: 16px;
}

h2{
font-size: 27px;
font-weight: 900;
font-style: italic;
margin: 0;
color: blueviolet;
}

.video-background{
border-radius: 100%;
background: black;
width: 80%;
margin: 0 auto;
}

@-webkit-keyframes moveX {
from { left: 0; } to { left: 480px; }
}
@-moz-keyframes moveX {
from { left: 0; } to { left: 480px; }
}
@-o-keyframes moveX {
from { left: 0; } to { left: 480px; }
}
@keyframes moveX {
from { left: 0; } to { left: 480px; }
}

@-webkit-keyframes moveY {
from { top: 0; } to { top: 333px; }
}
@-moz-keyframes moveY {
from { top: 0; } to { top: 333px; }
}
@-o-keyframes moveY {
from { top: 0; } to { top: 333px; }
}
@keyframes moveY {
from { top: 0; } to { top: 333px; }
}
8 changes: 7 additions & 1 deletion include.js
Original file line number Diff line number Diff line change
Expand Up @@ -2855,7 +2855,13 @@ let cards = [
githubLink: 'https://github.com/daniel-badura'
},
{
artName: 'Animated',
artName: 'Danimation',
pageLink: './Art/daniloslovic17/index.html',
imageLink: './Art/daniloslovic17/danimation.gif',
author: 'Danilo Slovic',
githubLink: 'https://github.com/daniloslovic17'
},
{ artName: 'Animated',
pageLink: './Art/Nyrkn10/index.html',
imageLink: './Art/Nyrkn10/set.gif',
author: 'Nyariki Kevin',
Expand Down

0 comments on commit d046110

Please sign in to comment.