Browse Source

La revolució dels somriures!

master
Néfix Estrada 9 months ago
parent
commit
3b47944bbd
5 changed files with 61 additions and 0 deletions
  1. +9
    -0
      audio.js
  2. BIN
      elvirolai.mp3
  3. BIN
      gosset.jpg
  4. +22
    -0
      index.html
  5. +30
    -0
      style.css

+ 9
- 0
audio.js View File

@@ -0,0 +1,9 @@
var accedir = document.getElementById("accedir")
accedir.addEventListener("click", () => {
var player = document.getElementById("player")
var gosset = document.getElementById("gosset")

player.play()
accedir.style.display = "none"
gosset.style.display = "inline-block"
})

BIN
elvirolai.mp3 View File


BIN
gosset.jpg View File

Before After
Width: 800  |  Height: 800  |  Size: 70KB

+ 22
- 0
index.html View File

@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Som gent de pau!</title>

<link rel="stylesheet" href="style.css">
</head>
<body>
<button id="accedir">Accedir</button>

<audio loop id="player">
<source src="elvirolai.mp3" type="audio/mpeg">
</audio>

<img id="gosset" src="gosset.jpg">

<script src="audio.js"></script>
</body>
</html>

+ 30
- 0
style.css View File

@@ -0,0 +1,30 @@
/* https://codepen.io/vitoralberto/pen/OPYyYB */
body {
text-align: center;
padding: 100px 0 0 0;
color: #fff;
background: #1d1f20;
}

#accedir {
font-size: 24pt;
padding: 24px;
background: #e67e22;
color: #fff;
}

#gosset {
-webkit-animation: rotation 3s infinite linear;
display: none;
max-width: 100%;
max-height: 100%;
}

@-webkit-keyframes rotation {
from {
-webkit-transform: rotate(0deg);
}
to {
-webkit-transform: rotate(359deg);
}
}

Loading…
Cancel
Save