diff options
| Commit | b27f43a679e259ce11d3c084f3d18c628e198924 (patch) | |
|---|---|---|
| Author | 2018-11-25 16:50:52 +0800 | |
| Committer | 2018-11-25 16:50:52 +0800 | |
| Files | e220105d0449a69e3809898b33c134200b0eafa3 /docs/src/experimentals/viewer-360.pug | |
| Spectre-Dark-Gruvbox-0.5.7.tar Spectre-Dark-Gruvbox-0.5.7.tar.gz Spectre-Dark-Gruvbox-0.5.7.zip | ||
| Parent | 81ee834ec6914f8b284e0724d541ed927513e6bd (diff) | |
| Parent | 4da76f6144709b940d16d8f8f200fd5344364409 (diff) | |
Merge pull request #536 from picturepan2/0.5.7 v0.5.7
0.5.7
1 files changed, 44 insertions, 0 deletions
| -rw-r--r-- | docs/src/experimentals/viewer-360.pug | 44 |
diff --git a/docs/src/experimentals/viewer-360.pug b/docs/src/experimentals/viewer-360.pug new file mode 100644 index 0000000..f17b786 --- /dev/null +++ b/docs/src/experimentals/viewer-360.pug @@ -0,0 +1,44 @@ +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 change the attribute #[code max] to use this component. + p + | The default image number in CSS is #[code 36]. You can change the image number by changing the variable #[code $image-number] in #[code _viewer-360.scss] and re-compiling the CSS. + + 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 |