--- title: Callout description: Callouts combine panels and alerts from Foundation 5 into one generic container component. video: yQdu0oSuaCo sass: scss/components/_callout.scss tags: - panel - alert --- ## Basics A callout is just an element with a `.callout` class applied. You can put any kind of content inside.
```html_exampleIt has an easy to override visual style, and is appropriately subdued.
It's dangerous to go alone, take this.It has an easy to override visual style, and is appropriately subdued.
It's dangerous to go alone, take this.It has an easy to override visual style, and is appropriately subdued.
It's dangerous to go alone, take this.It has an easy to override visual style, and is appropriately subdued.
It's dangerous to go alone, take this.It has an easy to override visual style, and is appropriately subdued.
It's dangerous to go alone, take this.It has an easy to override visual style, and is appropriately subdued.
It's dangerous to go alone, take this.It has an easy to override visual style, and is appropriately subdued.
It's dangerous to go alone, take this.It has an easy to override visual style, and is appropriately subdued.
It's dangerous to go alone, take this.It has an easy to override visual style, and is appropriately subdued.
It's dangerous to go alone, take this.Any element can be used as a close trigger, not just close button. Adding the attribute data-close
to any element within the callout will turn it into a close trigger.
When using the data-closable
attribute, you can optionally add Motion UI classes to the attribute to change the closing animation. If no class is added, the plugin defaults to jQuery's .fadeOut()
function.
But when you're done reading it, click the close button in the corner to dismiss this alert.
I'm using the default data-closable
parameters, and simply fade out.
And when you're done with me, I can be closed using a Motion UI animation.