succinct
succinct copied to clipboard
Destroy succinct
Hi,
Is there any way to destroy succinct? Because I need it just on hover state, so when mouseleave I would like to destroy succinct.
Thanks
The best way is stock the innerHTML in a variable before use Succinct.
var content = $('.element').html() // or .text()
if (condition) {
$(element).succinct({
size: 120,
})
} else {
$('element').html(content)
}