jquery-animate

Animating progress bars with CSS

跟風遠走 提交于 2020-03-18 03:05:32
问题 So, I have a few different progress bars on this page - http://kaye.at/play/goals Here's my HTML & CSS: <div class="meter"><span style="width: 100%;"></span></div> .meter { height: 5px; position: relative; background: #f3efe6; z-index: 0; margin-top: -5px; overflow: hidden; } .meter > span { z-index: 50; display: block; height: 100%; background-color: #e4c465; position: relative; overflow: hidden; } I want to simply animate the progress bar so that it slowly goes up from 0% to whatever

jquery simple animate/rotate of a css background-image inside a div?

烈酒焚心 提交于 2020-01-30 08:07:05
问题 I was wondering if anyone could help me out, or point me in the right direction. I'm looking for a snippet of jquery that will automatically change the background image of a div every say 5 seconds or so. My initial bg image is set in css, but i'm not sure how to create the function to make it swap between an array of images? I have 5 images: bg-1.jpg, bg-2.jpg, bg-3.jpg, bg-4.jpg, bg-5.jpg. Currently my div is set to bg-1.jpg. <div id="page_bg"></div> Don't really have any code to show, but

Dynamically change iframe's content

南楼画角 提交于 2020-01-25 20:03:51
问题 I have an iframe tag and I want to dynamically change it using jquery animation. So for example the iframe sits on the home page, and if i click the about link, it will load the about.html and when its ready it will slide it down using animation. I have the basic logic for it but then came about this problem: When I refresh the page it loads back the content of the index.html page, and what I want is that when I refresh it, it still keeps the contents of about.html. <a href="about.html"

Dynamically change iframe's content

大城市里の小女人 提交于 2020-01-25 20:00:39
问题 I have an iframe tag and I want to dynamically change it using jquery animation. So for example the iframe sits on the home page, and if i click the about link, it will load the about.html and when its ready it will slide it down using animation. I have the basic logic for it but then came about this problem: When I refresh the page it loads back the content of the index.html page, and what I want is that when I refresh it, it still keeps the contents of about.html. <a href="about.html"

jQuery image doesn't .explode

天大地大妈咪最大 提交于 2020-01-25 07:16:13
问题 I'm working on adding some very basic jQuery to my website. I want to explode an image of some balloons when it's clicked. I tried adding a height to the section as suggested in the answer to another question but it still doesn't work... Other effects I try on it, like fadeOut, work fine... Please help! script.js: //fadeIn blue flower $(document).ready(function(){ $('#blue_flower').hide().fadeIn('slow'); }); //fadeOut clover $(document).ready(function(){ $('#four_leaf_clover').click(function(

jQuery image doesn't .explode

一个人想着一个人 提交于 2020-01-25 07:16:07
问题 I'm working on adding some very basic jQuery to my website. I want to explode an image of some balloons when it's clicked. I tried adding a height to the section as suggested in the answer to another question but it still doesn't work... Other effects I try on it, like fadeOut, work fine... Please help! script.js: //fadeIn blue flower $(document).ready(function(){ $('#blue_flower').hide().fadeIn('slow'); }); //fadeOut clover $(document).ready(function(){ $('#four_leaf_clover').click(function(

jQuery image doesn't .explode

放肆的年华 提交于 2020-01-25 07:16:03
问题 I'm working on adding some very basic jQuery to my website. I want to explode an image of some balloons when it's clicked. I tried adding a height to the section as suggested in the answer to another question but it still doesn't work... Other effects I try on it, like fadeOut, work fine... Please help! script.js: //fadeIn blue flower $(document).ready(function(){ $('#blue_flower').hide().fadeIn('slow'); }); //fadeOut clover $(document).ready(function(){ $('#four_leaf_clover').click(function(

jquery .animate() collision detection

﹥>﹥吖頭↗ 提交于 2020-01-23 12:49:27
问题 I'm using animate to move a div within a grid of divs. As a test I am setting some of the grid divs as obstacles. If the animated div collides with one of the obstacles I want to end the animation. A plug in is fine or a snippet of code. I kind of suspect I am sniffing up the wrong tree with .animate() so any shove in the right direction or improvement on what I am doing is appreciated: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1

jquery .animate() collision detection

有些话、适合烂在心里 提交于 2020-01-23 12:49:10
问题 I'm using animate to move a div within a grid of divs. As a test I am setting some of the grid divs as obstacles. If the animated div collides with one of the obstacles I want to end the animation. A plug in is fine or a snippet of code. I kind of suspect I am sniffing up the wrong tree with .animate() so any shove in the right direction or improvement on what I am doing is appreciated: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1

Animating the background color of an HTML table's cell (or the whole row) on an event

别等时光非礼了梦想. 提交于 2020-01-23 06:35:24
问题 I have a table with a menu (food items) with several rows and columns. The 2nd column contains a link to the food item. When the user clicks it, the item is added to a shopping cart. I'd like to give the user some visual feedback that the click and adding actually worked. I already have a click handler for the link that adds the item clicked on to the cart. A simple alert('Item successfully added'); works but is not really pretty. I'd like the table cell (or the whole row) to "flash" once. By