Skip to content

Instantly share code, notes, and snippets.

View iamryanyu's full-sized avatar

Ryan Yu iamryanyu

View GitHub Profile
var $graphLink = $('.graph__link'),
$graphBarRed = $('.graph__bar--red'),
$graphBarGreen = $('.graph__bar--green'),
$graphBarYellow = $('.graph__bar--yellow'),
$graphStarRed = $('.graph__star--red'),
$graphStarGreen = $('.graph__star--green'),
$graphStarYellow = $('.graph__star--yellow');
$graphLink.hover(function() {
TweenMax.to($graphBarRed, 1.2, {
var $graphLink = $('.graph__link'),
$graphBarRed = $('.graph__bar--red'),
$graphBarGreen = $('.graph__bar--green'),
$graphBarYellow = $('.graph__bar--yellow'),
$graphStarYellow = $('.graph__star--yellow'),
$graphStarRed = $('.graph__star--red'),
$graphStarGreen = $('.graph__star--green');
var graphTFOrigin = '50% bottom',
graphDuration = 1.2;
<a href="#" class="btn btn-small">
<svg class="icon icon-small icon-yellow" aria-hidden="true">
<use xlink:href="styles/mysource_files/sprite.svg#lorikeet"></use>
</svg>
Lorikeet
</a>
<a href="#" class="btn btn-small" aria-label="Lorikeet">
<svg class="icon icon-small icon-yellow" aria-hidden="true">
<use xlink:href="styles/mysource_files/sprite.svg#lorikeet"></use>
</svg>
</a>
<svg class="icon icon-small icon-yellow">
<title>Lorikeet</title>
<use xlink:href="styles/mysource_files/sprite.svg#lorikeet"></use>
</svg>
<body>
<header>
<h1>My wonderful blog</h1>
<p>My tagline</p>
</header>
<aside>
<!-- this aside contains two sections that are tangentially related
to the page, namely, links to other blogs, and links to blog posts
from this blog -->
<nav>
<svg>
<use xlink:href="styles/mysource_files/sprite.svg#icon-name"></use>
</svg>
<svg class="icon icon-medium icon-red">
<use xlink:href="styles/mysource_files/sprite.svg#icon-name"></use>
</svg>
<svg class="icon icon-medium icon-red icon-inner-blue">
<use xlink:href="styles/mysource_files/sprite.svg#icon-name"></use>
</svg>
<nav>Nav goes here</nav>
<div class="hero>
<img src="images/hero-10x10.jpg" class="hero__img" alt="" data-src="original-hero.jpg" data-webp="original-hero.webp">
<section class="hero__section">
<div class="hero__content">
<h1>Title goes here</h1>
<p>Description goes here</p>
<a href="#">CTA button</a>
</div>