Skip to content

Instantly share code, notes, and snippets.

View AdrianGyuricska's full-sized avatar

Adrian Gyuricska AdrianGyuricska

View GitHub Profile
@AdrianGyuricska
AdrianGyuricska / Css
Last active August 29, 2015 14:13
Scrolling Animtions
.area {
@for $i from 0 through 12 {
li:nth-child(#{$i}) {
@include transition(all 0.35s $ease-out-cubic ((0.45)+((0.15)*$i))+s);
}
}
}
.area-heading {
@include transition(all 0.35s $ease-out-quart 0);
@AdrianGyuricska
AdrianGyuricska / gist:1297377
Created October 19, 2011 02:57
Basic Function
@the-border: 1px;
@base-color: #111;
#header {
color: @base-color * 3;
border-left: @the-border;
border-right: @the-border * 2;
}
@AdrianGyuricska
AdrianGyuricska / gist:1297361
Created October 19, 2011 02:45
Nested Sample
#header {
color: @blue;
}
#header a {
font-weight: bold;
text-decoration: none;
}
$('#selling nav a').click(function(){
var what = $(this).attr('href');
if($(this).hasClass('active') != true){
$(this).addClass('active').parent().siblings().children().removeClass('active');
$('.s-section:visible').animate({
left: '-700px'
}, 500, function() {
$(this).css({'left':'0'}).hide();
});
$(what).css({'left':'700px'}).show().animate({