jquery - CSS3 shapes and animation - Arrow -
as shown in image below, have create image , animate it. planning not use image rather using css3 border-radius
. so, below html , css i'm at.
the animation want arrow should start appearing bottom , moving along flow keeps on showing, take right flow till end arrow pointer. not sure how can this. have support browser ie8+, chrome, ff.
html:
<div class="years"> <article> <figure> <div class="vrt-bar"></div> <div class="hrzt-bar"></div> <div class="arrow"></div> </figure> </article> </div>
css:
.years article figure { height:auto; position:relative; } .years article figure .vrt-bar { width:34px; height:192px; behavior: url(css/pie.htc); border-radius:25px 0 25px 25px; -webkit-border-radius: 25px 0 25px 25px; -moz-border-radius: 25px 0 25px 25px; float:left; background:#00b9d3; position:relative; } .years article figure .hrzt-bar { width:143px; height:32px; background:#00b9d3; margin-left:34px; } .years article figure .arrow { width: 0; height: 0; border-top: 25px solid transparent; border-bottom: 25px solid transparent; border-left: 25px solid #00b9d3; position:absolute; top:-10px; left:177px; }
jsfiddle: http://jsfiddle.net/kgae4/
can please on this?
try guess of below need
working demo1
i have edited css little, , code
$('.arrow-up').animate({ 'top': '-5px' }, 1000, function () { $(this).addclass('arrow').removeclass('arrow-up'); $('.arrow').animate({ 'left': '177px' }, 1000); });
or
another type here
i have edited css little, , code
working demo2
$(document).ready(function () { $('.arrow-up').animate({ 'top': '-10px' }, 1000, function () { $(this).addclass('arrow').removeclass('arrow-up'); $('.arrow').animate({ 'left': '177px' }, 1000); }); $('.vrt-bar').animate({'height':'192px'},1000,function(){ $('.hrzt-bar').delay(80).animate({'width':'143px'},1000); }); });
Comments
Post a Comment