Toggle click
Toggle click
I have div that when clicked it change css and do some animation features. But I want it to be reversable. Here is script I use so far:
- <script>
- $(document).ready(function() {
- $('#change').click(function() {
- $('#logo').animate({backgroundColor: '#feb20e'},100);
- $(this).animate({backgroundColor: '#eda710',borderRightColor: '#d3940b'},500);
- $(this).css({ 'background-image': 'url("Images/arrow-hover.png")' },"slow");
- $('#logo').css({ 'background-image': 'url("Images/test2.png")'},"slow");
- });
- });
- </script>