JQuery :: Fade Non-:hover Images By Class
Feb 9, 2010
I have a grid of images. For the sake of my question, let's say there are different categories of images: cats, dogs and cars. All images belong to one of these categories, but all are different. When the page is loaded, all images have their opacity lowered to 0.7.
So far I've got:
What I'd like to achieve is that when you hover the mouse over a picture of any dog, all images with a class of "dogs" have their opacity adjusted to1.
View 7 Replies
ADVERTISEMENT
Mar 6, 2010
I have been trying to replicate a cool javascript effect that appears here (http://d3r.com). See the funky images fading in when hovering with mouse? I want that ;-) By using Firebug I think I have narrowed down the code needed to:
<div id="main" class="clearafter">
<div class="inner clearafter">
<div class="columns clearafter">
<div class="project hovers column" style="border-color: rgb(255, 255, 255); cursor: pointer; background-color: rgb(255, 255, 255);">
<a href="http://mountfolly.co.uk" class="image">
[Code]...
View 1 Replies
View Related
Dec 19, 2011
I have a gallery style page with rectangular images on laid out like a grid of nine. When the user looks at the page there is just the images and no information, but when they hover over the image I would like some text and a bar underneath to show up over the top so the user can read some information.my images sit in "a" tags. There is also a div tag in there which has it's z-index and position (absolute) set up so that it sits over the top of the image element in the "a" tag. stripped down e.g.
<a href="#"><img.... /><div>the info</div></a>
I need the div tag withinin the "a" tag to be set to 0 opacity. When the user hovers over the image the div tag slowly fades in to 100% opacity. Once the user moves the mouse away from the image the div tag slowly disappears again.I need each one to work independently so that it only changes the one currently being hovered over.
View 1 Replies
View Related
Aug 26, 2010
I would like to implement a fade in fade out effect on hover in the 'Our News' section, so when I hover over a news item the grey background of that box fades in slowly, how can I do this?
View 1 Replies
View Related
Jun 20, 2011
I found this script for a navigation fade-in/fade-out and I want to modify it so it'll only trigger the fade-in/fade-out functions of the span class is NOT set to active. Here is the javascript:
Code:
$(function() {
$("#nav ul#menu li span.active").css("opacity","1");
$("#nav ul#menu li span.active").hover("opacity","1");[code].....
It's the part of the code beneath the comment CONDITIONALS BELOW that I want to be able to only trigger it if span is not set to class .active.
View 1 Replies
View Related
Oct 11, 2011
I have a table grid of images, i need all the images except the one hovered to fade out to 0
I tried throwing around .filter but no luck
Images are written as <img class='tile' id='${row['_id']}' src='$rsrc/food pictures/${row['_filename']}_in.png'>
View 3 Replies
View Related
Sep 12, 2009
The first thing I'm trying to do, is pretty much exactly like the effect that is seen here [URL].. I like how it still fades even when your mouse isnt right on the link.. you could have the cursor on the link for 0.1 seconds and the fade animation still continues.. I tried looking through the sites javascript files to see how they do it, but I couldnt figure it out.
View 1 Replies
View Related
Aug 21, 2011
I have just begun using JQuery and I am having a lot of fun checking out all of the features. I have this image and I have 2 copies of that image: One in sepia and the other in full color. The effect I want is that when I hover into the sepia image it fades out and then the full color image fades in.
The sepia image is the one I have in the page in a <div> element, however I haven't put the full colored image because it would appear in the page, and I only want it to appear when the user hovers above the sepia image. My code for doing this so far is this:
<script>
$("#sepia").hover(function() {
$(this).fadeOut(500);
})
</script>
I just need to put in the fade in to the new picture, but I don't know how to do it.
View 1 Replies
View Related
Dec 5, 2009
I have a script that fades links on load and im trying to get this to work on everything but the menu link that has the "active" class
Code:
<div id="menu">
<ul><li id="Home"><a title="Home" href="/" style="opacity: 0.6;">Home</a></li>
<li class="active" id="projects"><a title="projects" href="/projects/" style="opacity: 0.6;">projects</a></li>
<li class="last" id="Contact"><a title="Contact" href="/contact" style="opacity: 0.6;">Contact</a></li>
</ul>
</div>
[Code]...
View 4 Replies
View Related
Sep 26, 2011
I'm trying to fade in a <li> background when you hover over it. The background is a gradient and not an image. Right now when you hover over it, the background shows up but it's too fast. I'd like to have a gradual fade in and out on hover.
[Code]...
View 2 Replies
View Related
Nov 17, 2011
I have been using jquery for about an hour. Here is my first menu animation, very simple; I am only playing with fade in and out on hover.
$(".nav li a").click(function(){
$(".nav li a").removeClass("active");
$(this).parent().addClass("active");
$('a').click().html();
Is this how I get a value of href? This does seem to work. Without this my link does not work.
return false;
});
$(".nav li a").hover(function(){
$(this).fadeTo('slow', 0.5, function() { });
//console.log($(this).text());
}, function(){
$(this).fadeTo('slow', 1, function() { });
//console.log($(this).text());
})
So I guess this is very simple. On hover my <a> within .nav li fades out back and forth. How would I 'hold' this across my entire website. Do I simply include JQuery in every page (if my page does not use any CMS like Wordpress). Is there a way to hold this menu across my entire site?
View 1 Replies
View Related
Aug 30, 2010
I'm designing a website over a WordPress platform and I decided to use the post thumbnails feature to make post's look more interesting. The thing is I tried to do a javascript to make post thumbnails fade on hover, but it's not working, and i really dunno why.
Code:
$(document).ready(function(){
$(".wpis_main .img img").fadeTo("slow", 0.6); // This sets the opacity of the thumbs to fade down to 60% when the page loads
$(".wpis_main .img img").hover(function(){
$(this).fadeTo("slow", 1.0); // This should set the opacity to 100% on hover
},function(){
[Code]...
View 2 Replies
View Related
Nov 25, 2011
I have been trying all afternoon to achieve an effect where the background colour of a hovered on link in a list fades out slowly when the mouse rolls off it. I have found a few tutorials online which are similar to what I want to achieve (but none that are exactly right) like these:[URL].. but despite playing around with them for hours I have had no luck so far... in fact I have yet to have anything have any effect on my links whatsoever!
[Code]...
but this is not ideal for a couple of reasons - firstly as it is css3 it only works in modern webkit browsers and secondly there seems no way to have only a fade out without a fade in - in this example I would like the fade out to be longer but if I increase the transition time from 0.3s then the fade in becomes too long and it feels a bit clunky and unresponsive.
View 10 Replies
View Related
Sep 22, 2011
Images are displayed one after the other with fade in and fade out .There are 20 images in slide show ....I want to show "Locading ...." message till all the images are loaded ...or display some GIF which will indicate the images are being loaded...
View 1 Replies
View Related
May 13, 2010
ie. the equivalent of typing them in a style sheet, but doing it dynamically?
View 6 Replies
View Related
Feb 4, 2010
More of a javascript question than specifically jquery but I was wondering how to change a css class onClick with a fade?
This is the code I have so far that is working fine to change the class but I don't know how to allow this class to fade in or even if it's possible?
View 1 Replies
View Related
Apr 14, 2011
I am trying to make different images hover over a table of sliced images when you mouse over a particular image. ex. mouse over image 1 = have image 1.1 hover over entire table of images in spot A; mouse over image 2 = have image 2.2 hover over entire table of images in spot B....ect. what i have so far only allows me to mouse over image 1 and have image 1.1 hover over entire table in spot A. Any time i try to move forward with more div's on other images it just jacks everything up.
Here it is: <html>
View 4 Replies
View Related
Sep 23, 2010
I have a list of links in a sidebar, each with an associated class name. When one of these links are clicked, I want to fade out all of the main content list items that do NOT have this class (ie - if I click on boots, I want to fade out the list items heels and sandals)
[Code]...
View 4 Replies
View Related
Oct 13, 2011
I have the following markup:
<div class="Field">
<label for="City">City</label>
<input type="text" id="City" name="City" value="">
<ul>
[Code]....
not sure if this is the best way. Can I improve it?
However I am having problems in adding (2).
Basically I think I need:
$(this).closest("div.Field"). Label or span.Label that are not inside LI.addClass("Hover")
View 4 Replies
View Related
Jun 25, 2009
I have a set of images that fade in and out when rolled over, using the following code:
<script type="text/javascript">
$(document).ready(function(){
$(".thumbs img").hover(function(){
$(this).fadeTo("fast", 1.0);
[Code]....
But the problem is, the images start at full opacity when the page loads, and I want them to either a) start from 0.3 or even better b) fade in to 0.3 from 0.
View 2 Replies
View Related
Dec 2, 2010
I'm using Cycle to transition multiple (8) images at one time. I want to fade in the first 8. In a slideshow where only 1 image displays at a time, the Cycle FAQ advises using the following code to fade in the first image:
$(function() {
$('#slideshow img:first').fadeIn(1000, function() {
$('#slideshow').cycle();
});
});
This doesn't work on IE or Firefox at all; it kind of works on Safari, in thatthe fade actually works. However, this seems to have also changed the behavior of the slideshow. For some of the cycles, instead of sliding the slides off the page, it hides the old slides and slides in the new ones.
View 1 Replies
View Related
Aug 15, 2010
I have a concept I want to develop but haven't been able to find a jQuery plugin that will do what i need. I am hoping if someone knows of a script or even to share if this is possible.
What I want is to have about 10 small images to be displayed horizontally and have each of these images fade in and out at random times and being replaced by other images.
I have a flash example that i would like to replicate that would give you an example of what i want to achieve. If you look at the bottom of the page where the platinum sponsors are this is what i want to replicate.
[URL]
View 2 Replies
View Related
Dec 19, 2010
URL..when you hover over an image, I've used .hover to fadeIn a DIV called 'zoomicon' for that image, but my problem is that when you hover one image, not only does the zoomicon for that image fade in, but all instances of zoomicon fade in, as well as fade out.how do Iseparateinstances of zoomicon to fade in and fade out for their respective image blocks?[code]
View 3 Replies
View Related
Jul 19, 2009
Where all images are loaded in, so scroll bars know how far the scroll is. Then they are faded up (using jQuery Cycle) once you scroll an image within the viewable area of the browser.
View 1 Replies
View Related
Sep 5, 2009
I'm trying to figure this out with jQuery: I have a few paragraphs of text kind of like this:
<p class="original" id="paragraph_1">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce ut metus augue, vitae malesuada massa. Vestibulum nec lectus urna, vehicula porta leo. Fusce dui nunc, scelerisque at molestie ut, ultricies eu purus. Duis tristique placerat rhoncus. Aliquam rhoncus lacus justo. Morbi ultricies egestas orci eget fermentum. Proin sapien sem, suscipit vel semper in, tincidunt id enim. </p>
<p class="text" id="paragraph_2">Maecenas nisl ipsum, faucibus sed pulvinar a, tristique sed magna. Sed dui erat, tempor ut rhoncus sagittis, lacinia quis lorem. Quisque feugiat, ipsum nec varius elementum, est nunc lacinia mi, mollis convallis lorem ipsum at erat. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.</p>
And I have a couple of classes, like so:
.highlight {
background-color: #ccc;
} .strikethrough {
text-decoration: line-through;
}
What I want to do is apply the .highlight class to a sentence (not the entire paragraph) on hover, and apply the .strikethrough class to a sentence on click. It's easy to find a sentence using regex, but I don't know how to add/remove a span to just that particular sentence that is being hovered over. I know I could programatically wrap each sentence in <span>...</span> tags on the backend, but I was hoping there was a better solution.
View 1 Replies
View Related
May 26, 2011
So, I have this menu set up that reduces the opacity of all but the hovered link. It works fine, but it's a video playlist, and I realized that I need to make sure that this style persists after the link has been clicked.I can figure out how to add a class on click, but how to combine the two? How can I set it up so that, if the link doesn't have the class .selected, the opacity will be at 0.3. Unless, of course, it's being hovered over.I'm in a little over my head here. Here's what I'm working with:
Code:
jQuery(document).ready(function() {
jQuery("#links").delegate("li", "mouseover mouseout", function(e) {
[code]....
View 1 Replies
View Related