body {
background-image: url("background.jpg");
background-attachment: fixed;
font-family: 'Roboto', sans-serif;
color: #333333;
}
#container {
height: 1000px;
}
/* HEADER WITH NAVIGATION BAR AND LOGIN OPTION */
#head {
position: absolute;
height: 150px;
width: 100%;
background-color: #ffffff;
right: 0px;
left: 0px;
top: 0px;
}
#logo-image {
position: relative;
margin-top: 40px;
margin-left: 40px;
}
#logo-image:hover {
-webkit-animation: blurEffect 0.5s ease-in;
}
@-webkit-keyframes blurEffect {
0% {
-webkit-filter: blur(0px);
filter: blur(0px);
}
50% {
-webkit-filter: blur(1px);
filter: blur(2px);
}
100% {
-webkit-filter: blur(0px);
filter: blur(0px);
}
}
.navbar-fixed {
top: 0;
z-index: 100;
position: fixed;
width: 100%;
}
.navigationmenu-main {
list-style-type: none;
overflow: hidden;
background-color: #333;
}
.navigationmenu-parent {
float: left;
}
.navigationmenu-child {
display: inline-block;
color: white;
width: 50px;
text-align: center;
padding: 10px 16px;
text-decoration: none;
background-color: #333;
-webkit-transition: background-color .3s;
}
.navigationmenu-child:hover {
background-color: #111;
}
.navigationmenu-child:hover + .navigationmenu-line {
width: 100%;
}
.navigationmenu-line {
height: 3px;
background-color: red;
width: 0%;
-webkit-transition: width .3s;
-webkit-transition-timing-function: ease;
}
.login-parent {
float: right;
}
.login-child {
display: inline-block;
color: white;
width: auto;
text-align: center;
padding: 10px 16px;
text-decoration: none;
background-color: #333;
-webkit-transition: background-color .3s;
}
.login-child:hover {
background-color: #111;
}
.login-child:hover + .navigationmenu-line {
width: 100%;
}
#loginbox {
display: block;
visibility: hidden;
position: absolute;
top: 132px;
right: 90px;
z-index: 999;
background: #a6a6a6;
background-image: linear-gradient(top, #fff, #eee);
padding: 15px;
box-shadow: 0 2px 2px -1px rgba(0, 0, 0, .9);
border-radius: 3px 0 3px 3px;
-webkit-transition: padding .3s;
}
.login-parent:hover #loginbox {
visibility: visible;
}
#loginform {
padding: 5px;
}
#loginelement {
padding: 5px;
}
/*----------------------*/
/* MAIN BODY */
#main{
position: relative;
height: 100%;
width: 90%;
margin-left: auto;
margin-right: auto;
background-color: #ffffff;
top: 0px;
bottom: 100px;
}
#box {
position: relative;
height: 100%;
width: 90%;
margin-left: auto;
margin-right: auto;
background-color: rgba(255,255,255,0.4);
top: 140px;
bottom: 100px;
box-shadow: 4px 4px 3px 1px rgba(0,0,0,0.4);
}
/*---------------*/
/* SLIDER */
.slider {
max-width: 100%;
height: 500px;
margin: 20px auto;
position: absolute;
top: 130px;
left: 0px;
right: 0px;
}
.slide1,.slide2,.slide3,.slide4,.slide5 {
position: absolute;
width: 100%;
height: 100%;
}
.slide1 {
background: url("image1.jpg")no-repeat center;
background-size: cover;
animation:fade 8s infinite;
-webkit-animation:fade 8s infinite;
}
.slide2 {
background: url("image2.jpeg")no-repeat center;
background-size: cover;
animation:fade2 8s infinite;
-webkit-animation:fade2 8s infinite;
}
.slide3 {
background: url("image3.jpg")no-repeat center;
background-size: cover;
animation:fade3 8s infinite;
-webkit-animation:fade3 8s infinite;
}
@keyframes fade
{
0% {opacity:1}
33.333% { opacity: 0}
66.666% { opacity: 0}
100% { opacity: 1}
}
@keyframes fade2
{
0% {opacity:0}
33.333% { opacity: 1}
66.666% { opacity: 0 }
100% { opacity: 0}
}
@keyframes fade3
{
0% {opacity:0}
33.333% { opacity: 0}
66.666% { opacity: 1}
100% { opacity: 0}
}
/*-----------------*/
/* FOOT AREA FIXED */
#foot {
position: fixed;
height: 80px;
width: 100%;
background-color: #333;
right: 0px;
left: 0px;
bottom: 0px;
}
<!DOCTYPE html>
<html>
<head>
<title>
Atlantis Paradiso | A luxury retreat
</title>
<link rel="stylesheet" type="text/css" href="style.css">
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
</head>
<!DOCTYPE html>
<title>
Atlantis Paradiso | A luxury retreat
</title>
<body>
<div id="container">
<div id="head">
<img src="brand-logo.png" id="logo-image" height="20%" width="20%">
<ul id="nav_bar" class="navigationmenu-main">
<li class="navigationmenu-parent">
<a href="" class="navigationmenu-child">Home</a>
<div class="navigationmenu-line">
</div>
</li>
<li class="navigationmenu-parent">
<a href="" class="navigationmenu-child">About Us</a>
<div class="navigationmenu-line">
</div>
</li>
<li class="navigationmenu-parent">
<a href="" class="navigationmenu-child">Services</a>
<div class="navigationmenu-line">
</div>
</li>
<li class="navigationmenu-parent">
<a href="" class="navigationmenu-child">Gallery</a>
<div class="navigationmenu-line">
</div>
</li>
<li class="navigationmenu-parent">
<a href="" class="navigationmenu-child">Contact</a>
<div class="navigationmenu-line">
</div>
</li>
<li class="login-parent">
<div class="login-child">Sign Up</div>
<div class="navigationmenu-line">
</div>
</li>
<li class="login-parent">
<div class="login-child" id="trigger">Login ▼</div>
<div class="navigationmenu-line">
</div>
<div id="loginbox">
<form id="loginform">
<input type="text" name="email" id="loginelement" placeholder="Username / Email">
<br>
<br>
<input type="password" name="password" id="loginelement" placeholder="Password">
<br>
<br>
<input type="submit" name="loginsubmit" id="loginelement">
<input type="checkbox" name="loggedin" id="loginelement"> Remember Me
</form>
</div>
</li>
</ul>
</div>
<div class='slider'>
<div class='slide1'></div>
<div class='slide2'></div>
<div class='slide3'></div>
</div>
<div id="foot">
<p align="Center">
Ocean Drive, Miami, FL, 33139, United States
</p>
</div>
</div>
</body>
</html>
I am currently working on creating a CSS image slideshow and I need assistance with making picture 1 smoothly fade out while picture 2 fades in seamlessly within one animation cycle. Any advice or guidance on achieving this effect would be greatly appreciated.