trying to give transition to addClass not working...why???
I am simply trying to get an animated transition to the adding of a class. I have tried fading in using the fadeIn() function which didnt work and now simply adding time in the second argument...but ti's a no-go. Anyone have any ideas why?
- <script>
- $(document).ready(function() {
- $(".content-item").click(function(){
- $(this).addClass("div-selected", 500);
- });
- });
- </script>