diff options
Add 360-Degree Viewer
2 files changed, 43 insertions, 0 deletions
| -rw-r--r-- | docs/src/_layout/_docs-layout.pug | 1 | ||||
| -rw-r--r-- | docs/src/experimentals/viewer-360.pug | 42 |
diff --git a/docs/src/_layout/_docs-layout.pug b/docs/src/_layout/_docs-layout.pug index 9ad4772..890b458 100644 --- a/docs/src/_layout/_docs-layout.pug +++ b/docs/src/_layout/_docs-layout.pug @@ -91,6 +91,7 @@ block content +docs-accordion( 'experimentals', 'Experimentals', + {url: 'viewer-360', name: '360-Degree Viewer'}, {url: 'autocomplete', name: 'Autocomplete'}, {url: 'calendars', name: 'Calendars'}, {url: 'carousels', name: 'Carousels'}, diff --git a/docs/src/experimentals/viewer-360.pug b/docs/src/experimentals/viewer-360.pug new file mode 100644 index 0000000..3c185d3 --- /dev/null +++ b/docs/src/experimentals/viewer-360.pug @@ -0,0 +1,42 @@ +extends ../_layout/_docs-layout.pug + +block variables + - var slug = 'viewer-360' + - var parent = 'experimentals' + - var title = '360-Degree Viewer - Experimentals - Spectre.css CSS Framework' + - var description = '360-Degree Viewer is an interactive product photo viewer. It is built in pure CSS. Spectre.css CSS Framework is a lightweight, responsive and modern CSS framework for faster and extensible development.' + +block docs-content + +docs-heading('viewer-360', '360-Degree Viewer') + p + small.label.label-primary.mr-2 CSS ONLY + + include ../_layout/_ad-g.pug + + p + | 360-Degree Viewer is an interactive product photo viewer. It is built in pure CSS. + + .docs-demo.columns + .column.col-12 + .viewer-360 + input.viewer-slider.slider(type="range" min="1" max="36" value="1" oninput="this.setAttribute('value', this.value);") + figure.viewer-image(style="background-image:url('https://i.loli.net/2018/11/25/5bfa45b4b3f27.jpg');") + + p + | Photo credits: + a(href="https://microsoft.msafflnk.net/c/1272791/433017/7593?u=https%3A%2F%2Fwww.microsoft.com%2Fen-us%2Fp%2Fsurface-pro-6%2F8zcnc665slq5" target="_blank") Microsoft Surface Pro 6 + + p + | You will need to use your own product image sprite (all angle of photos in one image) and define variables to use this component. The default image number is #[code 36]. + + pre.code(data-lang='HTML') + code + :highlight(lang="html") + <div class="viewer-360"> + <input class="viewer-slider slider" type="range" min="1" max="36" value="1" oninput="this.setAttribute('value', this.value);"> + <figure class="viewer-image" style="background-image:url('...');"></figure> + </div> + + include ../_layout/_ad-c.pug + + include ../_layout/_footer.pug
\ No newline at end of file |