Category : Design | Author : Chtiwi Malek | First posted : 8/16/2014 | Updated : 9/7/2014
Tags : 3d, ux, ui, css3, webdesign, design, html5, css, html, progress bar, loading
3D Progress Bar - Pure CSS3

3D Progress Bar - Pure CSS3

Improve user experience on your website and keep your visitors informed about the progress of the task with this eye-catching 3D CSS Progress Bar.

About two year ago I’ve published a tutorial on how to create a pure Css progress bar, for this experiment I’ll extend that same code and create a rotating 3d progress bar.

The final result will look like this :
First we will create a 3D rectangular box. I’ve already done a 3D Box Tutorial, check it, it’s the same principle.

Html Markup :

<div class="wrap">
  <div class="cube">
    <div class="front">
      <div class="progress">Loading ...</div>
    </div>
    <div class="back">
      <div class="progress">Loading ...</div>
    </div>
    <div class="top">
      <div class="progress">Loading ...</div>
    </div>
    <div class="bottom">
      <div class="progress">Loading ...</div>
    </div>
    <div class="left"></div>
    <div class="right"></div>
  </div>
</div>
Notice that inside each of the main sides (front, back, bottom and top) there is a div with a class name 'progress', theses blocks will actually reflect the progress status when we set their width (in percentage).

CSS Code :

.wrap {
  perspective: 1000px;
  perspective-origin: 50% 50%;

  /*  Change this to adjust the 3d bar tilting */
  transform: rotateZ(0.01turn) rotateY(0.01turn);
}
.progress
{
  height: 100%;
  width: 0%;
  padding: 0px;
  transition: width 2s ease;
  
  overflow: visible;
  text-align: center;
  color: #000;
  font-family: verdana;
  font-size: 20px;
  white-space: nowrap;
  line-height: 45px;
  
  border-right: solid 2px #444;
  background-size: 50px 50px;
  /* Blue stripes */
  background-image: linear-gradient(135deg,#3399ff 25%,#99ccff 25%,#99ccff 50%, #3399ff 50%, #3399ff 75%,#99ccff 75%,#99ccff 100%);
  animation: bganim 1s linear 2s infinite;
}
@keyframes bganim {
  to { background-position: 50px;}
}
.cube {
  margin: auto;
  position: relative;
  height: 50px;
  width: 500px;
  transform-style: preserve-3d;
  animation: rotate 20s infinite linear;
}

.cube > div {
  position: absolute;
  box-sizing: border-box;
  height: 100%;
  width: 100%;
  border: solid 1px #eee;
  background-size: 50px 50px;
  /* Grey stripes */
  background-image: linear-gradient(135deg,#ddd 25%,#eee 25%,#eee 50%, #ddd 50%, #ddd 75%,#eee 75%,#eee 100%);
  animation: bganim 1s linear 2s infinite;
}
.cube > .left,.cube > .right{
  height: 50px;
  width: 50px;
}

.front {
  transform: translateZ(25px);
}

.back {
  transform: translateZ(-25px) rotateX(180deg);
}

.top {
  transform: rotateX(-270deg) translateY(-25px);
  transform-origin: top center;
}

.bottom {
  transform: rotateX(270deg) translateY(25px);
  transform-origin: bottom center;
}

.left {
  transform: rotateY(270deg) translateX(-25px);
  transform-origin: center left;
}
.right {
  transform: rotateY(-270deg) translateX(25px) translateZ(450px);
  transform-origin: top right;
}

/* Rotating the 3d rectangle */
@keyframes rotate {
  100%{
    transform: rotateX(1turn);
  }
}

Setting up the progress value :

To change the progress position we only have to set a new percentage value to the property width of the Css class selector 'progress' :
$('.progress').css({ width: "80%" });

Browser Support

This code will run on all major browsers except IE, which till this date (August 2014) does not properly support the 'preserve-3d' keyword, all child elements are rendered flat in the same plane, but a functional preserve-3d should be implemented soon.
Also you have to add the '-webkit-' vendor prefix for Webkit browser like Chrome, Opera..

Have fun !

Don't hesitate to comment and feel free to use this 3d progress bar css scripts for your projects, and if you would like to provide credits, please link it to this article.
About the author :
Malek Chtiwi is the man behind Codicode.com
34 years old full stack developer.
Loves technology; but also likes design, photography and composing music.
Comments & Opinions :
yueqin

cheap jordan shoes

 

swarovski sale

 

bercrombie

 

yeezy shoes

 

polo ralph lauren outlet online

 

louboutin outlet

 

louis vuitton

 

longchamp pliage

 

coach handbags outlet

 

coach outlet store online

 

adidas running shoes

 

yeezy boost

 

fitflops

 

coach factory outlet store

 

true religion jeans

 

coach outlet canada

 

kate spade handbags

 

air max outlet

 

michael kors bags

 

michael kors

 

jimmy choo shoes

 

ed hardy uk

 

air jordans

 

coach outlet store online clearance

 

christian louboutin outlet

 

jordan retro

 

christian louboutin outlet

 

swarovski uk

 

birkenstock outlet

 

burberry sale

 

michael kors outlet clearance

 

tory burch outlet online

 

michael kors purses

 

michael kors outlet online

 

louis vuitton outlet online

 

marc jacobs

 

marc jacobs outlet

 

adidas sneakers

 

coach factory outlet

 

jordan femmes pas cher

 

kate spade outlet store

 

discount oakley sunglasses

 

michael kors outlet store

 

ralph lauren sale

 

jerseys cheap

 

polo ralph lauren outlet online

 

pandora charms sale

 

michael kors outlet clearance

 

beats wireless headphones

 

kd 8 shoes

 

birkenstocks

 

coach outlet online

 

coach factory outlet online

 

nike sneakers

 

coach factory outlet

 

michael kors outlet clearance

 

tommy hilfiger windbreaker

 

christian louboutin

 

cheap rolex watches

 

fitflops

 

sac louis vuitton

 

kate spade

 

kate spade outlet online

 

toms outlet

 

louis vuitton purses

 

timberland boots outle

 

nike uk

 

coach outlet online

 

fitflop shoes

 

gucci

 

cheap oakley sunglasses

 

coach factory outlet

 

air max 90

 

coach outlet online

 

michael kors handbags clearance

 

ralph lauren uk

 

polo ralph lauren outlet online

 

celine outlet online

 

nike outlet store

 

kate spade outlet

 

discount oakley sunglasses

 

michael kors

 

moncler jackets

 

rolex replica watches

 

rangers jerseys

 

birkin handbags

 

coach outlet online

 

louis vuitton factory outlet

 

tory burch sale

 

ralph lauren outlet online

 

birkenstock outlet

 

christian louboutin outlet

 

true religion jeans outlet

 

michael kors

 

cheap oakley sunglasses

 

yeezy boost 350

 

longchamp handbags

 

cheap oakley sunglasses

 

red bottom shoes for women

 

michael kors outlet clearance

 

coach factory outlet online

 

cardinals jerseys

 

ray bans

 

ghd straighteners sale

 

fendi bags

 

nike outlet

 

coach outlet store

 

adidas outlet store

 

cheap oakley sunglasses

 

yeezy boost 350 v2

 

adidas sneakers

 

red bottom

 

tods shoes

 

mulberry uk

 

pandora bracelet

 

thunder jerseys

 

sac longchamp

 

cheap nfl jerseys

 

christian louboutin uk

 

ralph lauren

 

true religion

 

tommy hilfiger outlet

 

ralph lauren outlet online

 

oakley sunglasses outlet

 

longchamp bags

 

coach outlet store online

 

eahawks jerseys

 

yeezy boost

 

louboutin shoes

 

jordan uk

 

coach factory outlet online

 

birkenstock

 

tods outlet

 

coach factory outlet

 

louboutin outlet

 

michael kors

 

hermes bags

 

pandora charms sale

 

rolex replica watches for sale

 

polo ralph lauren

 

rolex watches

 

coach outlet online

 

michael kors

 

pandora charms

 

louis vuitton factory outlet

 

mont blanc pens

 

phillies jerseys

 

ed hardy outlet

 

michael kors outlet online

 

fred perry polo shirts

 

ralph lauren outlet

 

longchamp handbags

 

michael kors outlet store

 

nike free run

 

michael kors outlet clearance

 

cheap oakley sunglasses

 

michael kors outlet online

 

nike sneakers

 

49ers jerseys

 

polo ralph lauren outlet

 

nike flyknit

 

rolex watches

 

toms outlet store

 

ralph lauren outlet online

 

cheap ray ban sunglasses

 

cheap jordan shoes

 

coach outlet online

 

fitflops sale

 

adidas yeezy boost

 

michael kors outlet

 

gucci bags

 

true religion jeans outlet

 

fitflops sale clearance

 

longchamp sale

 

adidas yeezy boost

 

louis vuitton outlet online

 

birkenstock shoes

 

michael kors outlet canada

 

swarovski crystals

 

ray ban sunglasses sale

 

cowboys jerseys

 

ralph lauren sale clearance uk

 

mbt

 

polo ralph lauren outlet online

 

nike tn pas cher

 

ghd hair

 

air max

 

pandora jewellery

 

coach factory outlet

 

fred perry polo shirts

 

michael kors outlet store

 

michael kors

 

longchamp bags

 

nfl jerseys wholesale

 

adidas nmd r1

 

michael kors bags

 

lakers jerseys

 

ray ban sunglasses outlet

 

longchamp soldes

 

moncler uk

 

air max 90

 

christian louboutin sale

 

coach outlet online

 

yeezy boost

 

beats headphones

 

cheap nike shoes

 

coach outlet store

 

adidas nmd runner

 

true religion sale

 

rockets jerseys

 

pandora jewelry store

 

coach outlet store online

 

louis vuitton handbags

 

nike air max 95

 

curry shoes

 

mlb jerseys

 

michael kors outlet online

 

oakley sunglasses wholesale

 

michael kors outlet online

 

dolce and gabbana outlet online

 

michael kors outlet canada

 

prada outlet online

 

michael kors outlet store

 

coach outlet online

 

fit flops

 

discount oakley sunglasses

 

adidas nmd runner

 

pandora charms outlet

 

moncler jackets

 

chaussures louboutin

 

texans jerseys

 

lebron shoes

 

red sox jerseys

 

michael kors

 

parada bags

 

air max shoes

 

nike blazer low pas cher

 

pandora jewelry outlet

 

purs jerseys

 

oakley sunglasses outlet

 

dodgers jerseys

 

michael kors bags

 

versace

 

mont blanc pen

 

kate spade purses

 

michael kors bags

 

michael kors outlet store

 

moncler outlet online

 

moncler uk

 

adidas nmd r1

 

louboutin outlet

 

cheap rolex replica watches

 

air max 90

 

fitflops clearance

 

discount oakley sunglasses

 

levis outlet

 

cheap air max

 

adidas nmd r1

 

coach outlet online

 

longchamp handbags

 

yeezy shoes

 

jordan shoes

 

fitflops sale

 

pandora charms outlet

 

ralph lauren uk

 

discount nike shoes

 

coach factory outlet

 

mont blanc pen

 

true religion outlet online

 

adidas superstar shoes

 

nike outlet

 

ralph lauren outlet online

 

adidas uk

 

true religion outlet store

 

nike store

 

polo ralph lauren outlet online

 

true religion outlet store

 

coach factory outlet

 

nike outlet store online

 

birkenstock uk

 

coach outlet online

 

fitflop shoes

 

coach factory outlet online

 

nike cortez classic

 

ray bans

 

michael kors outlet store

 

moncler coats

 

adidas outlet online

 

michael kors uk

 

christian louboutin shoes

 

adidas nmd runner

 

christian louboutin

 

adidas nmd r1

 

louboutin shoes

 

hermes outlet online

 

cubs jerseys

 

polo ralph lauren

 

coach factory outlet online

 

nmd adidas

 

giants jerseys

 

pandora charms

 

kate spade outlet online

 

nfl jerseys wholesale

 

jordans

 

warriors jerseys

 

polo ralph lauren

 

true religion jeans outlet

 

polo ralph lauren

 

birkenstock outlet

 

coach factory outlet

 

gucci outlet online

 

cheap nike sneakers

 

vans outlet

 

mulberry outlet uk

 

cheap jerseys

 

cheap oakley sunglasses

 

ray ban sale

 

white sox jerseys

 

toms outlet

 

coach purses

 

valentino outlet

 

mulberry

 

coach factory outlet online

 

kate spade bags

 

nike roshe shoes

 

mlb jerseys

 

ray ban sunglasses discount

 

coach factory outlet online

 

michael kors outlet online

 

mlb jerseys

 

coach outlet online

 

coach outlet online

 

polo ralph lauren

 

chi flat iron

 

louis vuitton outlet online

 

mulberry handbags

 

adidas superstars

 

fitflop

 

burberry outlet online

 

nfl jerseys cheap

 

kate spade bags

 

coach outlet online

 

christian louboutin sale

 

louboutin outlet

 

ray ban glasses

 

cavaliers jerseys

 

ray ban sunglasses outlet

 

polo ralph lauren outlet

 

michael kors handbags outlet

 

michael kors outlet store

 

nike air max 95

 

yeezy boost 350

 

louboutin pas cher

 

discount oakley sunglasses

 

sac longchamp

 

cheap jordan shoes

 

air jordans

 

michael kors outlet online

 

michael kors outlet store

 

pandora jewelry

 

james shoes

 

coach outlet

 

michael kors handbags outlet

 

nike free 4.0 flyknit

 

true religion uk

 

adidas outlet online

 

michael kors uk

 

pandora outlet

 

yeezy shoes

 

toms

 

michael kors outlet online

 

cheap jordan shoes

 

coach outlet online

 

eltics jerseys

 

polo ralph lauren pas cher

 

polo ralph lauren outlet

 

ralph lauren sale

 

mlb jerseys

 

ralph lauren outlet online

 

longchamp bag

 

adidas yeezy boost

 

polo ralph lauren outlet

 

christian louboutin pas cher

 

coach outlet online

 

hollister clothing

 

pandora charms sale clearance

 

coach outlet store online

 

coach outlet store

 

cheap jerseys

 

michael kors handbags outlet

 

wireless beats headphones

 

kate spade uk

 

coach outlet online

 

oakley sunglasses cheap

 

longchamp outlet store

 

coach outlet online

 

pandora jewellery

 

adidas yeezy boost 350

 

adidas nmd runner

 

true religion jeans outlet

 

pandora charms sale clearance

 

adidas

 

cheap oakley sunglasses

 

coach outlet online

 

toms shoes

 

kate spade outlet online

 

celine handbags

 

yeezy boost 350

 

pandora charms sale clearance

 

mulberry bags

 

coach factory outlet online

 

pandora

 

cheap oakley sunglasses

 

gucci bags

 

beats by dre

 

coach outlet store

 

toms

 

michael kors outlet

 

adidas sneakers

 

coach factory outlet online

 

sac louis vuitton pas cher

 

moncler pas cher

 

patriots jerseys

 

ray ban sunglasses discount

 

longchamp bag

 

michael kors outlet store

 

gucci handbags outlet

 

coach outlet online

 

coach outlet online

 

nike air huarache

 

montblanc pens

 

chaussures louboutin

 

michael kors outlet online

 

coach factory outlet online

 

kate spade outlet online

 

oakley sunglasses outlet

 

nike air force

 

michael kors

 

kd shoes

 

michael kors outlet clearance

 

pandora uk

 

birkenstocks

 

nfl jerseys

 

fred perry shirts

 

oakley sunglasses on sale

 

pandora charms outlet

 

montblanc

 

chaussure louboutin pas cher

 

louis vuitton outlet store

 

rolex replica watches for sale

 

abercrombie outlet

 

pandora jewelry

 

adidas outlet store

 

gucci

 

yeezy boost 350

 

ralph lauren

 

coach outlet

 

red bottom

 

pandora jewelry outlet

 

bulls jerseys

 

coach outlet store

 

coach factory outlet online

 

gucci handbags outlet

 

hollister clothing store

 

polo ralph lauren outlet online

 

nike free run flyknit

 

fit flops

 

fit flops

 

adidas trainers

 

michael kors bags

 

coach outlet store online

 

burberry outlet

 

tigers jerseys

 

air max

 

fitflops sale

 

mulberry uk

 

gucci outlet online

 

longchamps

 

nike roshe one

 

coach factory outlet online

 

tory burch outlet online

 

michael kors outlet store

 

christian louboutin shoes

 

adidas

 

cheap jordan shoes

 

adidas ultra boost

 

coach outlet online

 

ed hardy store

 

broncos jerseys

 

toms

 

louis vuitton outlet store

 

ralph lauren outlet

 

coach factory outlet online

 

vans store

 

nike outlet online

 

ralph lauren sale clearance uk

 

longchamp bags

 

yankees jerseys

 

hollister kids

 

nike air max

 

kobe bryant shoes

 

coach outlet store online

 

michael kors purse

 

ralph lauren outlet

 

adidas trainers

 

adidas superstar trainers

 

fake rolex watches

 

packers jerseys

 

coach outlet online

 

yeezy boost

 

ray ban glasses

 

ed hardy clothing

 

ralph lauren sale

 

nike outlet store

 

true religion jeans outlet

 

pandora charms sale clearance

 

cheap nfl jerseys

 

coach outlet online

 

christian louboutin outlet

 

michael kors outlet store

 

adidas store

 

pandora charms

 

fitflops sale clearance

 

michael kors handbags

 

heat jerseys

 

cheap ray ban sunglasses

 

adidas yeezy boost

 

pandora charms

 

coach outlet online

 

jordan shoes

 

polo ralph lauren outlet

 

gucci borse

 

air max

 

louis vuitton bags

 

louis vuitton outlet online

 

coach factory outlet online

 

hermes bags

 

cheap jordans for sale

 

yeezy 350 boost

 

polo ralph lauren outle

 

red bottom heels

 

adidas superstars

 

michael kors outlet online

 

harden shoes

 

michael kors outlet online

 

nike outlet store

- by 20170419 yueqin on 4/19/2017
Leave a Comment:
Name :
Email : * will not be shown
Title :
Comment :


» Member access