diff --git a/doc/frontfire-ui-accordion.html b/doc/frontfire-ui-accordion.html index 4bcc530..dd5ffda 100644 --- a/doc/frontfire-ui-accordion.html +++ b/doc/frontfire-ui-accordion.html @@ -200,6 +200,24 @@

No background

+

Single item expander

+

+ The accordion can also be used as a simple expander for a single item. + It might contain details or additional settings that might not be of interest all the time. +

+
+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus vestibulum, sem a pellentesque lacinia, dui lacus mollis arcu, vitae tristique ante elit at neque. Suspendisse potenti.

+
+
+
Additional information
+
+ Sed nec consequat odio. Aliquam erat volutpat. Morbi sed interdum metus. Nam feugiat dolor nisl, gravida varius tortor laoreet eget. Cras aliquet mattis metus, eget vestibulum mi sollicitudin eu. Morbi aliquam luctus orci. In eget justo vehicula, sodales felis non, vestibulum orci. Nunc a interdum lectus. +
+
+
+

Vestibulum dolor est, dignissim sed enim porttitor, interdum sagittis sem. Morbi sit amet ornare libero. Mauris scelerisque nulla vitae placerat efficitur. Donec cursus blandit tellus, et elementum tellus tincidunt sed. Donec congue urna a nunc cursus commodo.

+
+

Indent content

The indent CSS class can be added to an item to indent the content of the section to the same horizontal position as the header. diff --git a/src/js/frontfire-core.js b/src/js/frontfire-core.js index b114264..e116aec 100644 --- a/src/js/frontfire-core.js +++ b/src/js/frontfire-core.js @@ -1753,7 +1753,7 @@ // keep: (Boolean) Indicates whether the final state should be persisted (true) or reverted // (false). Defaults to true if unset. // - // TODO: Keeping the final state keeps the animation alive, using memory and blocking further style updates. Find another solution. See MDN for Element.animate(). Note that offCanvas needs the animation to later reverse() it. + // TODO: Keeping the final state keeps the animation alive, using memory and blocking further style updates. Find another solution. See MDN for Element.animate(). Note that offCanvas needs the animation to later reverse() it. - https://developer.mozilla.org/en-US/docs/Web/API/Animation#automatically_removing_filling_animations Frontfire_prototype.animateFromTo = function (data, duration, easing, keep) { let keyframes = [{}, {}]; for (let key in data) {