Skip to content

Instantly share code, notes, and snippets.

@eternal-turtles
Created June 8, 2014 21:40
Show Gist options
  • Select an option

  • Save eternal-turtles/663983c0eed595212d6a to your computer and use it in GitHub Desktop.

Select an option

Save eternal-turtles/663983c0eed595212d6a to your computer and use it in GitHub Desktop.
modal
#register {
-webkit-transform: translateX(-100.5vw) translateY(-45vh);
transform: translateX(-100.5vw) translateY(-45vh);
}
.show-modal {
margin: auto;
opacity: 1;
-webkit-transform: translateX(0) translateY(0) !important;
transform: translateX(0) translateY(0) !important;
-webkit-transition: -webkit-transform 300ms @ease-out-circ, opacity 600ms @ease-out-expo !important;
transition: transform 300ms @ease-out-circ, opacity 600ms @ease-out-expo !important;
z-index: 800;
}
(function() {
'use strict';
$(document).ready( () => {
$('#show-sign-in').click(showSignIn);
});
function showSignIn (e) {
$('#sign-in').toggleClass('show-modal');
e.preventDefault();
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment