File tree Expand file tree Collapse file tree 8 files changed +458
-1231
lines changed Expand file tree Collapse file tree 8 files changed +458
-1231
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 5
5
"description" : " Lottie player wrapper for Vue.js by LottieFiles" ,
6
6
"scripts" : {
7
7
"release" : " semantic-release" ,
8
- "build" : " vue-cli-service build --target lib --name @lottiefiles/vue-lottie-player ./src/index.js"
8
+ "build" : " vue-cli-service build --target lib --name @lottiefiles/vue-lottie-player ./src/index.js && rm ./dist/demo.html "
9
9
},
10
10
"main" : " dist/@lottiefiles/vue-lottie-player.common.js" ,
11
11
"files" : [
Original file line number Diff line number Diff line change 2
2
3
3
<div v-if =" playerSize !== 'hide'" :class =" playerControlsPosition === 'fixed' ? 'fixed mb-18 sm:mb-0' : ''"
4
4
class =" w-full pin-b pin-l px-3 py-6" >
5
- <div class =" flex justify-center items-center" >
5
+ <div class =" flex justify-center items-center text-center " >
6
6
<!-- stop-->
7
7
<div v-if =" playerSize === 'minimal'" @click =" stop"
8
8
:class =" (options.playing === true ? 'opacity-50' : '')+' '+(theme.active === 'dark' && options.playing === false ? 'opacity-70' : '')"
88
88
class =" absolute pin-b pin-r bg-grey-lightest border border-grey-light rounded-md p-3"
89
89
style =" margin-right : -9px ; margin-bottom : 50px ;" >
90
90
<div >
91
- <div class =" w-4 h-4 absolute bg-grey-lightest border-r border-t border-grey-light"
92
- style = " transform : rotate ( 135 deg ); border-radius : 0 px 3 px 0 px 0 px ; bottom : -8 px ; right : 20 px ; " > </div >
91
+ <div class =" w-4 h-4 absolute bg-grey-lightest border-r border-t border-grey-light triangle-border " >
92
+ </div >
93
93
<div class =" p-2" >
94
94
<p class =" font-lf-bold text-grey-darkest mb-4" >Background Color</p >
95
95
<p class =" font-lf text-grey-darkest text-sm mb-3" >Enter Hex or select.</p >
96
96
<input @keyup =" updateBackgroundColor" v-model =" backgroundColor"
97
97
class =" w-full text-grey-dark border border-grey-light bg-white px-3 py-2 rounded-md outline-none"
98
+ style =" font-size : 100% ; box-sizing : border-box "
98
99
type =" text" >
99
100
</div >
100
101
<div class =" flex p-2" style =" margin : 0px -5px " >
Original file line number Diff line number Diff line change 1
1
<template >
2
- <div class =" w-full relative" >
2
+ <div class =" w-full relative lottie-player " >
3
3
<div v-if =" loading" class =" w-full h-full absolute flex justify-center items-center" >
4
4
<div class =" spinner" ></div >
5
5
</div >
Original file line number Diff line number Diff line change 1
1
import Player from "./Player.vue" ;
2
- import "./lottie_player.min. css" ;
2
+ import "./lottie_player.css" ;
3
3
4
4
const LottieVuePlayer = {
5
5
install ( Vue , options = { } ) {
You can’t perform that action at this time.
0 commit comments