Latest 1.0
Homepage https://github.com/acton393/WeexLottie
License Copyright copyright
Platforms ios 8.0, requires ARC
Dependencies WeexPluginLoader, WeexSDK, lottie-ios
Authors

iOSPod version
WXLottie is a weex component plugin using lottie

WeexPack version: >= 0.2.0
WeexSDK : >= 0.15.1

WeexLottie

lottie project

WeexLottie

example
usage:

  1. run start script in your terminal
  2. front-end
    vue description:
<template>
  <div style='margin-top:50px;margin-left:150px'>
    <text style='margin-left:150px;border-width:2px;width:80px;' @click='click' :value="status"></text>
    <lottie src='http://127.0.0.1:12580/examples/animations/LottieWalkthrough.json' loop=true style='width:300px;height:300px'  ref='lottie'></lottie>
    <lottie src='http://127.0.0.1:12580/examples/animations/MotionCorpse-Jrcanest.json' loop=true style='width:300px;height:300px'  ref='lottie1'></lottie>
  </div>
</template>

<script>
  module.exports = {
    data: {
      play:false,
      status:"play"
    },
    methods: {
      click : function(e) {
        var lottie = this.$refs.lottie;
        var lottie1 = this.$refs.lottie1;
        if (this.play) {
          this.play = false;
          lottie.reset();
          lottie1.reset();
          this.status = "play";
        }else {
          this.play = true;
          lottie.play();
          lottie1.play();
          this.status='stop'
        }
      }
    }
  }  
</script>

integrate to your project

WXLottie for iOS

  • integrate by weexpack

    weexpack plugin add WXLottie
  • integrate with cocoaPods

    • add the follow in your Podfile

      pod 'WXLottie'
    • register this weex component after init weexSDK env

WXLottie for Android

contribution welcome

WXLottie for html5

contribution welcome
 
 

Latest podspec

{
    "name": "WXLottie",
    "version": "1.0",
    "summary": "Weex plugin for lottie",
    "description": "Weex plugin for lottie",
    "homepage": "https://github.com/acton393/WeexLottie",
    "license": {
        "type": "Copyright",
        "text": "            copyrightn"
    },
    "authors": {
        "acton393": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "user_target_xcconfig": {
        "FRAMEWORK_SEARCH_PATHS": "'$(PODS_ROOT)/WeexPluginLoader'"
    },
    "source": {
        "git": "https://github.com/acton393/WeexLottie.git",
        "tag": "1.0"
    },
    "source_files": "ios/Sources/*.{h,m,mm}",
    "requires_arc": true,
    "dependencies": {
        "WeexPluginLoader": [],
        "WeexSDK": [],
        "lottie-ios": []
    }
}

Pin It on Pinterest

Share This