-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add initial heem air example (not linked in sidebar because it is WIP…
…, we need to calculate the fitting of the image in the viewport based on aspect ratio)
- Loading branch information
Showing
5 changed files
with
21 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Heem Air | ||
|
||
<div id="example"></div> | ||
<script> | ||
new Vue({ | ||
el: '#example', | ||
template: '<live-code class="full" :template="code" :autorun="true" mode="html>iframe" />', | ||
data: { code: perspectiveLayeredImage({ | ||
bg: '/examples/heem-air/bg.jpg', | ||
fg: '/examples/heem-air/fg.png', | ||
bgPosition: {x: 0, y: 36}, | ||
}) }, | ||
}) | ||
</script> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
# Buttons with shadow | ||
# Indian Boombox | ||
|
||
<div id="example"></div> | ||
<script> | ||
new Vue({ | ||
el: '#example', | ||
template: '<live-code class="full" :template="code" :autorun="true" mode="html>iframe" />', | ||
data: { code: indianBoombox() }, | ||
data: { code: perspectiveLayeredImage({bg: '/examples/indian-boombox/bg.jpg', fg: '/examples/indian-boombox/fg.png'}) }, | ||
}) | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters