Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery("#IdOfReadMoreDIV").on('click',function(e){
- e.preventDefault();
- jQuery('#IdOfHiddenText').slideToggle('fast', function(){
- jQuery("html,body").animate({
- scrollTop: jQuery("#IdOfHiddenText").offset().top},'fast');
- });
- });
- jQuery("#IdOfReadMoreDIV").toggle(function(){
- jQuery("#IdOfArrowIcon", this).css("transform","rotate(180deg)");
- jQuery('#IdOfReadMoreTEXT').text("See Less");
- },function(){
- jQuery("#IdOfArrowIcon", this).css("transform","rotate(0deg)");
- jQuery('#IdOfReadMoreTEXT').text("Read More");
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement