feat(backstage.io): Allow to zoom images like Medium

This commit is contained in:
Himanshu Mishra
2020-11-29 13:35:38 +01:00
parent 74175b988e
commit 4122b3031f
6 changed files with 29 additions and 3 deletions
+11
View File
@@ -0,0 +1,11 @@
// Ref: https://github.com/francoischalifour/medium-zoom#options
window.addEventListener(
'load',
() => {
mediumZoom('[data-zoomable]', {
margin: 20,
background: '#000',
});
},
false,
);