Skip to content

Instantly share code, notes, and snippets.

View erickjones's full-sized avatar
👾
Giving 110%

Erick Jones erickjones

👾
Giving 110%
View GitHub Profile
@erickjones
erickjones / scrollToAnchorsWithJQuery
Last active August 29, 2015 14:07
Scrolling to Anchors with jQuery
$(document).ready(function(){
$('a[href^="#"]').on('click',function (e) {
e.preventDefault();
var target = this.hash,
$target = $(target);
$('html, body').stop().animate({
'scrollTop': $target.offset().top
}, 400, 'swing', function () {
@erickjones
erickjones / index.html
Last active August 29, 2015 14:07
A Pen by Erick Jones.
<header id="top">
<h1>Eu sou um header</h1>
</header>
<nav role='navigation'>
<ul>
<li><a href="#top">Home</a></li>
<li><a href="#sobre">About</a></li>
<li><a href="#clientes">Clients</a></li>
<li><a href="#contato">Contact Us</a></li>
.meuElemento { border-radius: 3px; }
sudo su -c "gem install sass"
@erickjones
erickjones / using-variables.scss
Last active August 29, 2015 14:24
SCSS Using Variables #1
// - - - - - VARIABLES - - - - - //
// Create a variable with $
$primary-color: tomato;
// Use your newborn variable
h1 {
color: $primary-color;
}
@erickjones
erickjones / _partial.scss
Last active August 29, 2015 14:24
SCSS Partial
html, body, ul, ol {
margin: 0;
padding: 0;
border: 0;
}
gem install sass
sudo gem install sass
// Create a variable with $
$primary-color: tomato;
// Use your newborn variable
h1 {
color: $primary-color;
}
a {
color: $primary-color;