This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="container" id="container"> | |
<div class="form-container sign-up-container"> | |
<!-- Sign Up form code goes here --> | |
</div> | |
<div class="form-container sign-in-container"> | |
<!-- Sign In form code goes here --> | |
</div> | |
<div class="overlay-container"> | |
<!-- The overlay code goes here --> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="form-container sign-up-container"> | |
<form action="#"> | |
<h1>Create Account</h1> | |
<div class="social-container"> | |
<a href="#" class="social"><i class="fab fa-facebook-f"></i></a> | |
<a href="#" class="social"><i class="fab fa-google-plus-g"></i></a> | |
<a href="#" class="social"><i class="fab fa-linkedin-in"></i></a> | |
</div> | |
<span>or use your email for registration</span> | |
<input type="text" placeholder="Name" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="form-container sign-in-container"> | |
<form action="#"> | |
<h1>Sign in</h1> | |
<div class="social-container"> | |
<a href="#" class="social"><i class="fab fa-facebook-f"></i></a> | |
<a href="#" class="social"><i class="fab fa-google-plus-g"></i></a> | |
<a href="#" class="social"><i class="fab fa-linkedin-in"></i></a> | |
</div> | |
<span>or use your account</span> | |
<input type="email" placeholder="Email" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="overlay-container"> | |
<div class="overlay"> | |
<div class="overlay-panel overlay-left"> | |
<h1>Welcome Back!</h1> | |
<p> | |
To keep connected with us please login with your personal info | |
</p> | |
<button class="ghost" id="signIn">Sign In</button> | |
</div> | |
<div class="overlay-panel overlay-right"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const signUpButton = document.getElementById('signUp'); | |
const signInButton = document.getElementById('signIn'); | |
const container = document.getElementById('container'); | |
signUpButton.addEventListener('click', () => { | |
container.classList.add('right-panel-active'); | |
}); | |
signInButton.addEventListener('click', () => { | |
container.classList.remove('right-panel-active'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
h1 { | |
font-weight: bold; | |
margin: 0; | |
} | |
p { | |
font-size: 14px; | |
font-weight: 100; | |
line-height: 20px; | |
letter-spacing: 0.5px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.container { | |
background-color: #ffffff; | |
border-radius: 10px; | |
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22); | |
position: relative; | |
overflow: hidden; | |
width: 768px; | |
max-width: 100%; | |
min-height: 480px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.form-container { | |
position: absolute; | |
top: 0; | |
height: 100%; | |
transition: all 0.6s ease-in-out; | |
} | |
.sign-in-container { | |
left: 0; | |
width: 50%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.overlay-container { | |
position: absolute; | |
top: 0; | |
left: 50%; | |
width: 50%; | |
height: 100%; | |
overflow: hidden; | |
transition: transform 0.6s ease-in-out; | |
z-index: 100; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="tab-nav-container"> | |
<div class="tab active purple"> | |
<i class="fas fa-home"></i> | |
<p>House</p> | |
</div> | |
<div class="tab pink"> | |
<i class="far fa-heart"></i> | |
<p>Likes</p> | |
</div> | |
<div class="tab yellow"> |
OlderNewer