Skip to content

Instantly share code, notes, and snippets.

View HarryAdney's full-sized avatar
🎯
Focusing

Dev HarryAdney

🎯
Focusing
View GitHub Profile
@HarryAdney
HarryAdney / media-queries.css
Last active May 5, 2020 09:56
media queries
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
@HarryAdney
HarryAdney / Parallax scrolling
Last active February 22, 2020 11:39
Parallax scrolling
***html***
<div class="wrapper">
<div class="box box-back">
<h3>SWEETIES</h3>
</div>
<div class="box box-front">
<img src="https://cdn.pixabay.com/photo/2017/03/30/15/47/churros-2188871_960_720.jpg" />
</div>
</div>
@HarryAdney
HarryAdney / Vertical align with flex
Last active February 22, 2020 11:41
Vertical align with flex
Vertical align with flex
***html***
parent {
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
width: 100wh;
}
@HarryAdney
HarryAdney / responsive nav.html
Last active February 18, 2020 15:47
responsive-nav
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
@import url('https://fonts.googleapis.com/css?family=Work+Sans:300,600');
const gulp = require('gulp');
const browserSync = require('browser-sync').create();
const sass = require('gulp-sass');
const autoprefixer = require('gulp-autoprefixer');
const clean = require('gulp-rm');
// Use gulp-terser instead of gulp-uglifies
const uglify = require('gulp-terser');
const minify = require('gulp-clean-css');
@HarryAdney
HarryAdney / carousel-css-only
Last active January 16, 2020 15:27
Carousel made with css only