- This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- The forum ‘JavaScript’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › JavaScript › Button that reveals text on a tumblr page
So I’m trying to condense information and have people be able to click a button that drops down / reveals text. The closest thing I could fine, that actually has an image of what I want, is the second code offered on https://stackoverflow.com/questions/34033334/button-that-drops-down-text-box
The thing is, it doesn’t seem to be able to work with more than one of those at a time. I tried putting two, but when I open and close the second one, it also reveals/hides the information under the button above it.
If someone could give me a similar code that does the same thing, I’d be grateful. The button doesn’t even need to have customization, though if it’s no trouble that would be nice.
There are loads online if you Google phrases like “collapsible content divs”, “accordion content containers”, “click to reveal content” and “read more drop down boxes”. Here are some of mine, and one I’m aware of from Dynamic Drive, otherwise you’ll need to do some more research using the suggestions above.
A basic JS block reveal http://fofwebdesign.co.uk/template/_testing/read-more-js.htm
Animated with Velocity (no JQuery) http://fofwebdesign.co.uk/template/_testing/jquery-to-velocity-faqs.htm
Animated using jQuery http://fofwebdesign.co.uk/template/_testing/jquery-faqs.htm and http://www.dynamicdrive.com/dynamicindex17/animatedcollapse.htm