Fix: smooth transition for collapsible elements #41158
Open
+98
−89
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR addresses the issue where the collapsible elements in Bootstrap did not have a smooth transition effect for both expanding and collapsing. The code was modified to provide a smooth transition using CSS transition properties. This ensures a better user experience when interacting with collapsible elements.
Motivation & Context
The transition for collapsible elements was not smooth when expanding and collapsing. This change was required to improve the usability and visual smoothness of the collapsible sections. This update ensures the animations for the collapse transition are handled smoothly with both height and opacity.
Type of changes
Checklist
npm run lint
)Live previews
N/A (since this is a code fix for collapsible elements, no live preview required)
Related issues