Included here are ten, stripped down examples of effects you might consider using as part of your customization of your card on our /people
page. Each of these links directly to the demo, but you can see the full source code below, too.
To play around with these demos, clone this repository. Once you do, you should be able to open up each HTML file in your own text editor and/or browser to explore.
In rough order of complexity:
-
font.html
loads a font remotely from Google Fonts and uses it to change the font we use in a givendiv
. -
round.html
rounds the corners of adiv
using CSS. -
fade.html
uses CSS to animate the fading of an element when we hover over it. -
spin.html
spins ourdiv
upside down when we hover over it using CSS. -
synthesize.html
build our page from scratch using nothing but JavaScript, adding functionality similar tofade.html
without CSS. -
sprite.html
uses a sprite sheet and CSS to achieve flipbook-style animation. -
random.html
uses JS to randomly reorder a list whenver you click the mouse. -
mouse.html
uses JS to place a div randomly, and when we're close enough, make it follow our mouse. -
flickr.html
uses JS and a technique known as JSONP to grab a random photo from Flickr's API and set it as a background. -
canvas.html
uses HTML's<canvas>
element to draw a smiley face.
And finally, a boring PS: boilerplate.html
is a bare HTML stub you can use as a template for your own explorations.