Skip to content

Instantly share code, notes, and snippets.

.stack {
width: 454px;
height: 454px;
justify-content: center;
background-color: whitesmoke;
}
.container {
background-color: whitesmoke;
}
.compass-container {
@salmanyaqoob
salmanyaqoob / cssAnimation.js
Created January 28, 2021 08:44
CSS Animation JS
import utils from '../../common/utils.js';
export default {
backAction() {
utils.backToHome();
},
}
@salmanyaqoob
salmanyaqoob / cssAnimation.hml
Created January 28, 2021 08:43
Css Animation Screen UI
<stack class="stack">
<image src='/common/background.png' class="background"></image>
<div class="container">
<div id="effect1" class="changeColor"></div>
<div class="space"></div>
<div id="effect2" class="circleAnimation"></div>
<input class="backBtn" type="button" value="Back" onclick="backAction"></input>
</div>
</stack>
@salmanyaqoob
salmanyaqoob / animator.css
Created January 28, 2021 08:42
Animator screen Style
@import '../../common/style.css';
.image-player {
width: 256px;
height: 256px;
}
@salmanyaqoob
salmanyaqoob / animator.js
Created January 28, 2021 08:42
Animator Screen JS
import utils from '../../common/utils.js';
export default {
data: {
images: [
{ src: '/common/pic1.png' },
{ src: '/common/pic2.png' },
{ src: '/common/pic3.png' },
{ src: '/common/pic4.png' },
{ src: '/common/pic5.png' },
@salmanyaqoob
salmanyaqoob / animator.hml
Created January 28, 2021 08:41
Animator Screen UI
<stack class="stack">
<image src='/common/background.png' class="background"></image>
<div class="container">
<image-animator class="image-player" ref="animator" images="{{images}}" duration="1s"
onclick="handleClick"></image-animator>
<input class="backBtn" type="button" value="Back" onclick="backAction"></input>
</div>
</stack>
@salmanyaqoob
salmanyaqoob / arrrays.css
Created January 28, 2021 08:40
Array Screen Style
@import '../../common/style.css';
.containerArray {
flex-direction: column;
width: 300px;
height: 50px;
background-color: transparent;
}
@salmanyaqoob
salmanyaqoob / arrrays.js
Created January 28, 2021 08:39
Array Screen JS
import app from '@system.app'
import utils from '../../common/utils.js';
export default {
data: {
arrayData: [
{id: 1, name: 'jack', age: 18},
{id: 2, name: 'tony', age: 18},
],
@salmanyaqoob
salmanyaqoob / arrrays.hml
Created January 28, 2021 08:38
Array screen UI
<stack class="stack">
<image src='/common/background.png' class="background"></image>
<div class="container" onswipe="touchMove">
<text>
Arrays
</text>
<!-- div loop rendering -->
<!--By default, $item indicates the element in the array, and $idx indicates the index of the element in the array.-->
<div for="{{arrayData}}" tid="id" class="containerArray">
<text>{{$idx}}.{{$item.name}}
@salmanyaqoob
salmanyaqoob / index.css
Created January 28, 2021 08:38
Index screen CSS
@import '../../common/style.css';
.showList {
background-color: transparent;
flex-direction: column;
width: 454px;
height: 400px;
}
.showListItem {