0
0
0leg5ergeev2015-10-03 19:09:04
JavaScript
0leg5ergeev, 2015-10-03 19:09:04

How to make smooth text output?

I did something like this in jquery. When you click on the block, the styles change, the picture disappears and the text appears. The only thing I couldn't do was make the text appear smoothly . Those. each time the text is opened, its opacity should change from 0 to 1. How to do this?

jsfiddle.net/44mt6507/2

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Goncharov, 2015-10-03
@0leg5ergeev

jsfiddle.net/44mt6507/4

I
Immortal_pony, 2015-10-03
@Immortal_pony

$('.as2').show('slow');
Well, in general, you can play with the animation on hide and show - api.jquery.com/show
And there is also fadeIn and fadeOut - api.jquery.com/fadeIn

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question