Progress indicator by animating background position
This post experiments with different patterns for indicating progress, you know, those "loading...", "Please wait..." type of things. The progress is shown by using JavaScript to animate the CSS background position.
TheSixtyOne.com
There's this cool site called http://www.thesixtyone.com/, great for discovering new music (if they only agree to ban Foo Fighters, the site will be perfect). Discovering music but also discovering interesting web design patterns, as it turns out.
TheSixtyOne.com shows a progress indicator when you click a song, as if the background shows how the song gets loaded. So I had to try implementing this myself and I also played with two other variants of the background animation.
Here's a video, a little screencast to demonstrate how the loading looks like:
Here are the three examples, take a look at the code, there are no external JavaScript libraries, just some do-it-yourself animation with setInterval()
Example #1 - filling the background
For this you get an image that is at least as long as the container you're about to animate. The height of the background image doesn't matter, could be just one pixel. Here's the image I used.
Ar the start of the animation, the background image is so to the left, it's invisible. At the end of the animation, the background fills out the whole container.
Example #2 - overflowing background
This is a modified version of the previous pattern. Once the background is filled the animation keeps going, so the background escapes from view. Then it's moved back at the beginning and the animation repeats.
Example #3 - dancing arrow
If you remember old radios, this pattern looks like you're playing with the dial. Here, the background image is different, just a small square basically. It gets repeated vertically. Here's the backgournd.
Tags: animation, background position, experiments, progress indicator
July 25th, 2008 at 12:38 am
[...] Last, not least, I decided to try and find some time to update my JavaScript patterns site. Unfortunately I got sidetracked (yep, I’m easily distracted by shiny objects) and played with a not-so-javascript pattern. The post I published (includes a pretty lame screencast! and) demonstrates how you can use animated background position to indicate loading progress. [...]
August 10th, 2008 at 7:36 pm
hi, andar here, i just read your post. i like very much. agree to you, sir.
September 5th, 2008 at 4:15 am
[...] – bookmarked by 5 members originally found by peacay on 2008-08-17 Progress indicator by animating background position http://www.jspatterns.com/progress-indicator-by-animating-background-position/ – bookmarked by 4 [...]
November 25th, 2008 at 7:45 pm
Cool…,though its something that you learn in your free time.Its like a sliding div.
January 24th, 2009 at 5:42 am
that looks great but if you notice in the website the Progress Bar is going on as the music is going to be loaded I was wondering How can we load a html in a div and figure out how much (bytes) of the code has been loaded , what is your Idea ?
July 1st, 2009 at 8:59 am
[...] UX or User Experience Design Patterns in Ajax Patterns and was merrily reading on the Quince and JS Patterns Progress Indicator Pattern articles when I stumbled upon this idea that I should blog about the UI [...]
April 7th, 2010 at 1:55 pm
From where you guys get so correct info , i can’t even imaging
September 15th, 2011 at 3:19 pm
excellent post, I’m a drum student myself
December 10th, 2011 at 11:43 pm
sell suprisely to get new coupon
December 14th, 2011 at 11:53 am
web design jobs los angeles ca…
[...]JSPatterns.com » Blog Archive » Progress indicator by animating background position[...]…
December 14th, 2011 at 7:39 pm
Intriguing blog site by an stylish templates, it could be greater if practically all the current material on your blogging site is manufactured exclusive with appealing topics that will give you far more website visitors to your internet site.
December 15th, 2011 at 5:00 pm
Nice post. I was checking constantly this blog and I am impressed! Extremely helpful info specifically the last part
I care for such information a lot. I was looking for this certain info for a very long time. Thank you and good luck.
December 16th, 2011 at 2:03 pm
I need your web site.. pleasant colors & theme. Have you create this page yourself or did you employ someone to get it done on your behalf? Plz answer back as I��m hoping to design my personal blog and would like to know where u got this from. thanks
December 17th, 2011 at 9:46 am
JSPatterns.com » Blog Archive » Progress indicator by animating background position It’s arduous to seek out educated individuals on this matter, but you sound like you understand what you’re talking about! Regards, Teak Furniture catalog
December 17th, 2011 at 12:33 pm
The ruling routine in Iran are likely to get supported an attack over the UK’s embassy in Tehran, the British ambassador into the place has explained.
January 3rd, 2012 at 1:40 pm
This is my first time i go here. I stumbled onto lots of interesting stuff in the blog especially its discussion. Out of your lots of comments with regards to your articles, Perhaps Get alone having most of the enjoyment here! stick to the great work.
January 3rd, 2012 at 2:37 pm
design…
[...]JSPatterns.com » Blog Archive » Progress indicator by animating background position[...]…
January 3rd, 2012 at 2:44 pm
i am a sufferer of back pains and i tried some herbal stuffs to alleviate the pain additionally it worked**
March 20th, 2012 at 9:13 am
I’ve learn a few good stuff here. Definitely worth bookmarking for revisiting. I wonder how a lot effort you set to create this sort of magnificent informative website. City Escorts4U, 78 Cornhill, London, EC3V 3QQ, 020 3011 1726
April 21st, 2012 at 3:09 am
oure so cool! I dont suppose Ive read anything like this before. So nice to find somebody with some original thoughts on this subject. realy thank you for starting this up. this website is something that is needed on the web, someone with a little originality. useful job for bringing something new to the internet!
February 14th, 2013 at 11:04 am
balanced diet, emily reynolds, healthy eating
Healthy eating and a balanced diet are crucial for a healthier lifestyle, I know what it takes to create sustainable health, fitness and wellness.
http://www.emilyreynolds.net
weight loss, personal trainer
February 15th, 2013 at 4:01 am
loayalty kiosk program, loyalty kiosk marketing system
http://www.youtube.com/watch?v=HrreeOrxbFg&feature=youtu.be
Appznation’s Loyalty Kiosk Program – This touch pad device installs at the client location, next to the register or on a counter in plain sight. Consumers ta…
loyalty kiosk system
February 19th, 2013 at 9:08 am
vegetarian recipes, Vegetables & Vegetarian
20 Gourmet Vegetarian Recipes – Vegetables are Good! Learn to Prepare Vegetarian and Vegan Dishes Like a Gourmet Chef. (Vegetables & Vegetarian): Susan Bradley: Amazon.com: Kindle Store
http://www.amazon.com/Gourmet-Vegetarian-Recipes-Vegetables-ebook/dp/B00B7XCC0A
Vegetables, gourmet vegetarian recipes
February 19th, 2013 at 10:39 am
is dish network good, dish internet service, daytime dish
http://www.boyfriendofthemonthclub.com/?cat=18&paged=10
Dish Network 500 Kit For Use With TR-3500 Tripod Mount Brand:WINEGARD Model:DS-5005 Dimensions: 6.75â³ H X 23.75â³ W X 126.75â³ L, 13.4 lbs. Features For Dish 500 Programming View Programming From 110 & 119 Satellites For Use With TR-3500 Tripod Mount
welcome to dish, dish network reviews
February 19th, 2013 at 7:12 pm
wireless surround sound, best wireless surround sound system
http://www.boyfriendofthemonthclub.com/?cat=18&paged=13
With Its Wireless Capabilities, The Sony CPF-IX001 Wireless PC Audio System Lets You Enjoy Superior Audio Content Stored On Your Networked PCâIn Any Room Of Your Home. Enjoy Its High-Performance Subwoofer And Digital Amplifiers And Superior Sound
surround sound wireless speakers, best surround sound speakers
February 21st, 2013 at 10:48 am
homedics shiatsu massage cushion, homedics massage cushion, homedics shiatsu
Homedics SBM-500H Therapist Select Shiatsu Massaging Cushion With Moving Massage Mechanism, 6 Programs And Quick Heat. Black. Shoulder Massage Mechanism Includes A Height Adjustment. Back Massage Mechanism Has Spot Shiatsu And Width Control
http://www.fakeworldmarketing.com/?p=1915
homedics massager, shiatsu massage cushion
February 22nd, 2013 at 10:49 pm
organize your garage, get organized
http://packupthehouse.com/get-organized-home-closet-garage/85117
Home-Closet-Garage | Moving Boxes-Supplies and Getting Organized. Organize your garage, kitchen, shelves, with shelving, racks and more
closet organizers, shelf organizers
April 20th, 2013 at 4:41 am
video, pattern, chart, diamond
Learn more about Forex Technical Analysis Techniques
http://www.automatedforextradingnews.com/forex-education-video-showing-dxy-daily-diamond-chart-pattern/
showing, daily, education, forex
April 20th, 2013 at 7:03 pm
engagement ring, cheap engagement rings, diamond ring, wedding ring
Helping you find the best Diamond engagement ring for your fiance that she could never refuse
http://findherdiamondring.com/
cheap diamond rings, diamond ring for fiance, engagement diamond ring
April 20th, 2013 at 9:39 pm
Dog Trainers, Dogs Health, Dogs, Dog Training, Dog Training Tips
Learn Tips About Dog Training dog agility training
http://www.edogagilitytraining.com/
Dogs Agility, Dog Foods, Best Dog Training, Dog Training Secrets, Dog Agility Training
April 21st, 2013 at 7:46 am
world of warcraft cheats, world of warcraft guide to leveling, world of warcraft leveling, world of warcraft leveling, f
http://www.eworldofwarcraftleveling.com
World of Warcraft leveling guides and farming for gold
world of warcraft horde leveling guide, leveling guide for world of warcraft, world of warcraft leveling tips, world of warcraft gold farming
April 24th, 2013 at 3:25 pm
Canoe Plans
http://canoeplans.org/
The dream of building or owning your own canoe can now be a reality…Get Your Ready Canoe Plans Now
Ready Canoe Plans
April 26th, 2013 at 11:41 pm
Hi there! Do you know if they make any plugins to assist with Search Engine Optimization? I’m trying to get my blog to rank for some targeted keywords but I’m not seeing very good success. If you know of any please share. Thanks!San Francisco Roofing, 1276 7th Ave., San Francisco, CA 94122 – (415) 800-4100
April 28th, 2013 at 5:49 am
Electronic Cigarettes, Electronic Cigarettes To Quite Smoking
http://ecigarettesfacts.weebly.com/
Electronic Cigarettes To Quite Smoking – In a world that seemingly appears down upon people who puff on cigarettes, there appears to be an alternative that’s taking the smoking world by storm. electric cigarettes, or e-cigarettes, are rapidly rising in popularity and use everywhere in the world.
To Quite Smoking
May 1st, 2013 at 11:19 pm
It is all-inclusive so all meals, alcohol, gratuities and non-motorized
sports activities are included. Substrate: Inside of its large
enclosure, water dragons need multiple branches or
vines to climb and bask upon. These lizards can weigh 11 pounds
on average and can grow up to roughly 6.
May 3rd, 2013 at 5:13 am
Magnificent put up, very informative. I’m wondering why the opposite specialists of this sector don’t understand this. You must continue your writing. I am sure, you have a great readers’ base already!|What’s Happening i’m new to this, I stumbled upon this I have found It positively useful and it has helped me out loads. I hope to contribute & aid other users like its helped me. Good job.
May 10th, 2013 at 2:39 pm
sprinkler repair northern virginia, lawn sprinkler companies in northern virginia, lawn irrigation systems northern virginia
Brodie Outdoor Solutions installs and repairs lawn irrigation and sprinkler systems in the Northern Virginia area. Fully licensed and insured professional landscapers with over 23 years of landscaping experience. we specialize in irrigation and sprinkler systems for both residential and commercial properties. Ask us about our seasonal special 10% discount. Satisfaction is 100% guaranteed. Call us today for your Free Estimate: (703) 475-8795
https://www.youtube.com/watch?v=abVlldoAW3c
lawn sprinkler systems northern virginia, northern virginia irrigation systems