I’d like to show/hide part of a paragraph as follows:
Starts out looking like this:
► This is the start of the paragraph with fading text
Upon clicking “caret” on left, it looks like this:
▼ This is the start of the paragraph with fading text no longer fading and the rest of the content shown.
Upon clicking the down “caret”, it returns to:
► This is the start of the paragraph with fading text
As I think about this could something like this work?
<div class="partial-text"><a href="">► This is the start of the paragraph with <style=”fadingCSS”> fading text</style></a></div>
<div class="full-text"><a href="">▼ This is the start of the paragraph with fading text no longer fading and the rest of the content shown.</a></div>
CSS I Need Help With
- Show/Hide appropriate div
- Remove all link formatting
- Fading style CSS
I’ve look at the following but can’t piece it together:
- How to style the arrow of <details> <summary> elements?
- Fading out text on overflow with css if the text is bigger than allowed
This is sort of beyond my reach so if there is anyone willing to help, it would be greatly appreciated!