├── examples ├── transition.css ├── animation.css ├── animation.html └── transition.html ├── .gitattributes ├── package.json ├── .gitignore ├── license ├── readme.md └── vue-transition.js /examples/transition.css: -------------------------------------------------------------------------------- 1 | .rect { 2 | height: 100px; 3 | width: 100px; 4 | background: yellow; 5 | } 6 | 7 | .anime { 8 | width: 200px; 9 | } 10 | -------------------------------------------------------------------------------- /examples/animation.css: -------------------------------------------------------------------------------- 1 | .text{ 2 | width: 200px; 3 | height: 50px; 4 | } 5 | 6 | .anime1{ 7 | animation: bounce 1s linear 0s 2 alternate ; 8 | } 9 | 10 | @keyframes bounce{ 11 | from{ 12 | font-size: 1em; 13 | } 14 | to{ 15 | font-size: 3em; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | 7 | # Standard to msysgit 8 | *.doc diff=astextplain 9 | *.DOC diff=astextplain 10 | *.docx diff=astextplain 11 | *.DOCX diff=astextplain 12 | *.dot diff=astextplain 13 | *.DOT diff=astextplain 14 | *.pdf diff=astextplain 15 | *.PDF diff=astextplain 16 | *.rtf diff=astextplain 17 | *.RTF diff=astextplain 18 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "vue-transition", 3 | "version": "0.1.3", 4 | "description": "A transition component for Vue", 5 | "main": "vue-transition.js", 6 | "repository":{ 7 | "type":"git", 8 | "url":"https://github.com/Twiknight/vue-transition" 9 | }, 10 | "keywords": [ 11 | "vue", 12 | "transition" 13 | ], 14 | "author": "Twiknight", 15 | "license": "MIT", 16 | "bugs":{ 17 | "url":"https://github.com/Twiknight/vue-transition/issues" 18 | }, 19 | "homepage":"https://github.com/Twiknight/vue-transition" 20 | } 21 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Windows image file caches 2 | Thumbs.db 3 | ehthumbs.db 4 | 5 | # Folder config file 6 | Desktop.ini 7 | 8 | # Recycle Bin used on file shares 9 | $RECYCLE.BIN/ 10 | 11 | # Windows Installer files 12 | *.cab 13 | *.msi 14 | *.msm 15 | *.msp 16 | 17 | # Windows shortcuts 18 | *.lnk 19 | 20 | # ========================= 21 | # Operating System Files 22 | # ========================= 23 | 24 | # OSX 25 | # ========================= 26 | 27 | .DS_Store 28 | .AppleDouble 29 | .LSOverride 30 | 31 | # Thumbnails 32 | ._* 33 | 34 | # Files that might appear in the root of a volume 35 | .DocumentRevisions-V100 36 | .fseventsd 37 | .Spotlight-V100 38 | .TemporaryItems 39 | .Trashes 40 | .VolumeIcon.icns 41 | 42 | # Directories potentially created on remote AFP share 43 | .AppleDB 44 | .AppleDesktop 45 | Network Trash Folder 46 | Temporary Items 47 | .apdisk 48 | 49 | #node 50 | node_modules 51 | -------------------------------------------------------------------------------- /license: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /examples/animation.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | animation example 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 |
16 | 17 | {{msg}} 18 | 19 | 20 |
21 |
22 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /examples/transition.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | transition example 6 | 7 | 8 | 9 | 10 | 11 |
12 | 15 | 18 | 21 | 22 |
23 | {{logo}} 24 | 25 |
26 |
27 | 28 | 62 | 63 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | # Vue-transiton Component 2 | A component to perform CSS transition using [Vue.js.](http://vuejs.org) 3 | 4 | It allows you to trigger a transition whenever you like. 5 | 6 | ## Installation 7 | 8 | npm install vue-transition 9 | 10 | Or just include the file using a `