I have a jQuery slideshow where when a thumbnail is hovered over the picture changes and a description of the picture shows up in the larger version of the picture. All of that works fine. I would like, however, to change the opacity of the div that contains the description of the picture (because it's overlaid on top of the larger picture).
I don't know why the below code isn't working.
<script type="text/javascript">
$(document).ready(function () {
$('#description').animate({opacity: 0.25},1000});
});
</script>
The selector is correct. Thanks for any help
try this:
$(document).ready(function () {
$('#description').animate({opacity: 0.25},1000);
//the error is in that } after the 1000 that you have
});
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.