Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@hunted-down-developer
hunted-down-developer / error-message.css
Last active April 8, 2019 19:12
Animação nativa pra mensagens de erro
.error-message{
display: block;
margin: 0 auto;
width: 80%;
font-size: 1rem;
line-height: 3rem;
text-align: center;
font-family: sans-serif;
@hunted-down-developer
hunted-down-developer / navResponsive.css
Last active April 3, 2019 16:15
Menu Responsivo (vanilla)
/*Menu responsivo e efeito de fading*/
.navResponsive {
position: absolute;
top: 0; bottom: 0; left: 0;
display: flex;
flex-direction: column;
align-items: center;
width: 70%;
@hunted-down-developer
hunted-down-developer / request.js
Last active April 8, 2019 19:12
Request (GET) wrapped numa promise
request(url){
return new Promise((resolve, reject) => {
let xhr = new XMLHttpRequest();
xhr.open('GET', url);
xhr.onload = () => {