@ampify/aquery
Advanced tools
Comparing version 1.2.16 to 1.2.17
{ | ||
"name": "@ampify/aquery", | ||
"version": "1.2.16", | ||
"version": "1.2.17", | ||
"main": "./dist/aquery.js", | ||
@@ -37,3 +37,3 @@ "module": "./src", | ||
}, | ||
"gitHead": "7c9ff32a87f89e63935f800d23ccc7f344b699c9" | ||
"gitHead": "3731cac071ac5d0a564cc388afd1491f224c9cf4" | ||
} |
@@ -31,5 +31,5 @@ const strategies = ['img_src', 'attr', 'images']; | ||
if (strategy && strategy.display) { | ||
element.classList.add(strategy.display); | ||
element.classList.add(`ampify-slider-${strategy.display}`); | ||
$.injectCss(` | ||
.${strategy.display} { object-fit: ${strategy.display}; }`); | ||
.ampify-slider-${strategy.display} { object-fit: ${strategy.display}; }`); | ||
} | ||
@@ -36,0 +36,0 @@ carousel.appendChild(element); |
44957