Description
I created a component called ToggleBlurb. A reusable component created on contentful. It's a div that toggles on paragraphs to make them visible and not-visible with the click of a button. It works like an accordion (yes, the instrument). So when one a user clicks on a title, the title then expands to reveal a couple of paragraphs. Then, if the user clicks once again on the now opened title, the paragraph will then disappear. Finally, to elevate the user experience, if there is a paragraph opened and the user suddenly decides they would like to open another title without really worrying about the one that is already open, the opened title will automatically close and the new title will the proceed to open. Currently this feature works on the mobile version.
Description I created a component called ToggleBlurb. A reusable component created on contentful. It's a div that toggles on paragraphs to make them visible and not-visible with the click of a button. It works like an accordion (yes, the instrument). So when one a user clicks on a title, the title then expands to reveal a couple of paragraphs. Then, if the user clicks once again on the now opened title, the paragraph will then disappear. Finally, to elevate the user experience, if there is a paragraph opened and the user suddenly decides they would like to open another title without really worrying about the one that is already open, the opened title will automatically close and the new title will the proceed to open. Currently this feature works on the mobile version.
)
https://user-images.githubusercontent.com/55670305/159398682-35dcab5e-4513-4b56-bf7b-86c71f1f49ac.mov