Code: CSS
html {
height: 100%;
color: white;
font-family: 'Quicksand';
font-family: url("fonts/Quicksand.ttf");
src: url("fonts/Quicksand.ttf");
font-family: 'Quicksand',
}
body {
background: linear-gradient(180deg, rgba(42,34,34,1) 0%, rgba(65,7,91,1) 53%, rgba(120,06,99,47) 100%);
font-family: 'Quicksand', sans-serif;
letter-spacing: 0.2em;
}
.webgl-content {
margin-top: 3%;
}
nav {
display: flex;
}
nav ul {
display: flex;
}
nav ul slash {
margin:18px;
color:#dd00e6;
}
nav ul li a {
height: 20px;
width:150px;
align-items: center;
padding: 0.6rem;
margin:7px;
text-decoration: none;
color: white;
}
li {
display: grid;
}
li .german,
li .japanese {
text-align: center;
grid-area: 1 / 1;
transition: opacity 1s;
}
li .german {
text-align: center;
opacity: 1;
}
li .japanese {
text-align: center;
opacity: 0;
}
li:hover .german {
opacity: 0;
}
li:hover .japanese {
opacity: 1;
color: #dd00e6;
}
.sideTitle {
float:right;
writing-mode: vertical-lr;
font-weight: 700;
font-size: 120px;
color: #f70cca;
text-align: center;
text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #dd00e6, 0 0 40px #dd00e6, 0 0 50px #dd00e6, 0 0 60px #dd00e6, 0 0 70px #dd00e6;
}
.Main{
text-align: center;
color:aliceblue;
font-size: 25px;
margin-top: 3%;
display: flex;
flex-direction: column;
align-items: center;
line-height:200%;
}
.Main h1{
font-size: 30px;
border: 4px solid #dd00e6;
padding: 0.8rem;
border-radius: 10px;
box-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #dd00e6, 0 0 20px #dd00e6, 0 0 25px #dd00e6, 0 0 30px #dd00e6, 0 0 35px #dd00e6;
clear: both;
}
.Highscore {
text-align: center;
color: #fff;
font-size: 70px;
margin-top: 3%;
display: flex;
flex-direction: column;
align-items: center;
line-height:200%;
}
.Game{
text-align: center;
color:aliceblue;
letter-spacing: 0.1em;
font-size: 20px;
margin-top: 100%;
display: flex;
flex-wrap: wrap;
flex-direction: column;
align-items: center;
line-height:200%;
}
.impressum{
margin-top: 4rem;
display: flex;
flex-wrap: wrap;
flex-direction: column;
align-items: center;
}
.kontakt {
display: flex;
align-items: center;
flex-direction: column;
margin-top: 4rem;
background-position: center;
}
.kontakt h1{
font-family: 'Quicksand';
text-align: center;
color: #02E1FF;
letter-spacing: 0.2em;
font-size: 70px;
display: flex;
flex-direction: column;
align-items: center;
line-height:200%;
text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #02E1FF, 0 0 40px #02E1FF, 0 0 50px #02E1FF, 0 0 60px #02E1FF, 0 0 70px #02E1FF;
clear: both;
}
.kontakt form {
display: flex;
flex-direction: column;
align-items: center;
}
.kontakt form tag {
display: flex;
flex-direction: column;
padding: 10px;
}
.kontakt form input {
width: 20rem;
height: 3rem;
}
.kontakt form button {
font-family: 'Quicksand', sans-serif;
width: 20rem;
padding: 15px;
}
.kontakt h2 {
font-size: 20px;
margin-bottom: 0rem;
}
.kontakt p {
font-size: 20px;
margin: 5px 0;
margin-bottom: 5rem;
}
.kontakt input {
background: none;
color: white;
border: none;
border: 3px solid rgba(255, 255, 255, 0);
transition: 0.5s ease-in-out;
}
.kontakt input:hover {
border: 3px solid #ff00ee;
}
.arcadeMachine{
position: relative;
z-index: 1;
height:628px;
width:348px;
background: url("images/I_Asteroids_1.png");
background-size: contain;
}
.arcadeMachine1{
z-index: 5;
}
.arcadeMachine img{
position:absolute;
left:0;
-transition: opacity 1s ease-in-out;
transition: opacity 1s ease-in-out;
transition: opacity 1s ease-in-out;
transition: opacity 1s ease-in-out;
}
.arcadeMachine:hover{
/* filter: brightness(1.2) ;*/
height:628px;
width:348px;
background-image: url("images/I_Asteroids_2.png");
filter:contrast(120%);
}
table{
width:100%;
table-layout: fixed;
}
h2{
font-size: 30px;
color: #fff;
text-transform: uppercase;
font-weight: 300;
text-align: center;
margin-bottom: 15px;
}
#ani-wrap {
display: flex;
/* Breite auf die der Einzelbilder setzen: */
width: 348px;
overflow: hidden;
}
#ani-wrap img {
/* Verhindern, dass Mausaktionen auch auf die Bilder wirken: */
pointer-events: none;
}
Alles anzeigen
HTML: HTML
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="external.css"/>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="bootstrap-5.0.2-dist/css/bootstrap.min.css"/>
<title>
Arcade
</title>
</head>
<body>
<nav>
<ul>
<li>
<a class="german" href="index.html">HOME</a>
<a class="japanese" href="index.html">ホームホーム</a>
</li>
<li>
<a class="german" href="ueber_uns.html">ÜBER UNS</a>
<a class="japanese"href="ueber_uns.html">私について</a>
</li>
<li>
<a class="german" href="kontakt.html">KONTAKT</a>
<a class="japanese"href="kontakt.html">連絡先の詳細</a>
</li>
<li>
<a class="german" href="impressum.html">IMPRESSUM</a>
<a class="japanese"href="impressum.html">インプリント</a>
</li>
</ul>
</nav>
<div class="sideTitle">
アーケード
</div>
<div class="Main">
<div>Willkommen / <span style=" color: #f70cca;">こんにちは </span> </div>
<div>Wähle deinen Automaten und habe Spaß !!! </div></div>
<div class="container">
<div class="row">
<div class="col">
<div id="ani-wrap">
<a href="HighScoreSite.html" ><img width="348" height="628,5" src="images/I_Asteroids_3.png" alt="Game3"></a>
<a href="HighScoreSite.html" ><img width="348" height="628,5" src="images/I_Asteroids_2.png" alt="Game3"></a>
<a href="HighScoreSite.html" ><img width="348" height="628,5" src="images/I_Asteroids_1.png" alt="Game3"></a>
</div>
</div>
<div class="col">
<a href="Build_2D_Racer/Index.html" > <img width="348" height="628,5" src="images/Game1.png" alt="Game2"></a></div>
<div class="col">
<a href="HighScoreSite.html" ><img width="348" height="628,5" src="images/Game1.png" alt="Game3"></a>
</div>
</div>
</div>
<script>
const fps = 3,
aniWrapper = document.getElementById('ani-wrap');
// Gibt an, ob die Animation läuft:
let aniRunning = false;
function animateIt() {
if (aniRunning) {
// Wir nehmen das letzte Bild und stellen es an den Anfang:
aniWrapper.prepend(aniWrapper.lastElementChild);
}
}
// Funktion zyklisch ausführen:
setInterval(animateIt, 1000 / fps);
// Animation starten und stoppen mit Eventhandler
// fuer Mouseover und Mouseout:
aniWrapper.addEventListener('mouseover', event => {
aniRunning = true;
});
aniWrapper.addEventListener('mouseout', event => {
aniRunning = false;
});
</script>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
</body>
</html>
Alles anzeigen
Ja ich weiß. Ist noch super Chaotisch. Bin noch viel am experimentieren.