Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .element {
- position: absolute;
- display: none;
- left: 0;
- top: 0;
- }
- <div class="element">Some content here</div>
- <div class="element">Some content here</div>
- var c = $('.element');
- c.each(function () {
- c.css({
- 'left': dleft + 'px'
- });
- c.css({
- 'top': dtop + 'px'
- });
- c.setTimeout(function () {
- c.show(1000);
- }, sduration);
- var dleft = 40;
- var dtop = 40;
- var sduration = 1000;
- var c = $('.element');
- c.each(function() {
- c.css({
- 'left': dleft + 'px',
- 'top': dtop + 'px'
- });
- });
- setTimeout(function() {
- c.show(1000);
- }, sduration);
- var c = $('.element');
- c.each(function () {
- c.css({ 'left': dleft + 'px', 'top': dtop + 'px' });
- setTimeout(function () {
- c.show(1000);
- }, sduration);
- });
- c.each(function() {
- c.css({
- 'left': dleft + 'px',
- 'top': dtop + 'px'
- });
- });
- c.delay(1000).show();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement