1.3.7-alpha.2 • Published 11 months ago

@gaopeng123/card-flip v1.3.7-alpha.2

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

card-flip

翻转动画在线demo

Usage

export type CardFlipConfig = {
    height?: string | number; // 高度
    width?: string | number; // 宽度
    type?: 'x' | 'y' // 翻转的方向
};
<style>
  #front {
    height: 100%;
    background-image: url(https://picsum.photos/200/300?k=1);
  }

  #back {
    height: 100%;
    background-image: url(https://picsum.photos/200/300?k=2);
  }
</style>

<card-flip height="300" width="200" type="x">
  <div slot="front" id="front"> front</div>
  <div slot="back" id="back"> back</div>
</card-flip>
1.3.7-alpha.2

11 months ago

1.3.7-alpha.1

11 months ago