let animWithBackground = animations.filter((v) => v.backgroundColor)
let backgroundColor = animWithBackground.length > 0 ? animWithBackground[0].backgroundColor : null
- console.log($link.find('.bg-preview'))
-
$link.find('.bg-preview').css('background-color',backgroundColor)
- /*if(links[link].type === '15' || /\.(jpg|png|svg|webp|avif)$/.exec(links[link].image)) {
- el = previewDiv.children().get(0)
- }*/
+ if(links[link].type === '39') {
+ previewDiv.addClass(links[link].to)
+ }
this.linkeditor.linksAnimations.executeAnimations(el, animations)
}