Skip to content

Commit

Permalink
fixed formatting issue in html
Browse files Browse the repository at this point in the history
  • Loading branch information
l-white committed Oct 2, 2023
2 parents 7c481b7 + 39923ff commit c4f0ebd
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Art/alexsatalan/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8" />
<title>A shaking box</title>
<link href="./style.css" rel="stylesheet" />
</head>
<body>
<button>Shaking box</button>
</body>
</html>
Binary file added Art/alexsatalan/shaking.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 53 additions & 0 deletions Art/alexsatalan/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/* Animation property */
button {
animation: wiggle 3s linear infinite;
}

/* Keyframes */
@keyframes wiggle {
0%, 7% {
transform: rotateZ(10deg);
}
15% {
transform: rotateZ(-15deg);
}
20% {
transform: rotateZ(10deg);
}
25% {
transform: rotateZ(-10deg);
}
30% {
transform: rotateZ(6deg);
}
35% {
transform: rotateZ(-4deg);
}
80%, 100% {
transform: rotateZ(0deg);
}
}

body {
background: #000;
}

button {
position: absolute;
left: calc(50% - 3em);
top: calc(50% - 2em);

height: 4em;
width: 7em;

background: #3ea47a;
background: linear-gradient(top, #4c2626, #996b6b);
border: none;
border-top: 3px solid orange;
border-radius: 0 0 0.2em 0.2em;
color: #fff;
font-family: Helvetica, Arial, Sans-serif;
font-size: 1em;
transform-origin: 50% 5em;
}

7 changes: 7 additions & 0 deletions include.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ let cards = [
imageLink: '',
author: 'Anna',
githubLink: 'https://github.com/anna-1980'
},
{
artName: 'Shaking box',
pageLink: './Art/alexsatalan/index.html',
imageLink: './Art/alexsatalan/shaking.gif',
author: 'AlexS',
githubLink: 'https://github.com/alexsatalan'
}
];

Expand Down

0 comments on commit c4f0ebd

Please sign in to comment.