Created
June 14, 2018 08:50
-
-
Save yarigpopov/8f846b8389dcff1b99518ea6ce506eeb to your computer and use it in GitHub Desktop.
SVG demo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
import { TimelineMax, TweenMax, easing } from 'gsap'; | |
const { Power2, Back, Elastic } = easing; | |
export default Ember.Component.extend({ | |
tagName: 'svg', | |
attributeBindings: ['height', 'width', 'xmlns', 'version', 'viewBox'], | |
viewBox:'0 0 370 370', | |
/* width: '100%', | |
height: '100%', */ | |
xmlns: 'http://www.w3.org/2000/svg', | |
version: '1.1', | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body{ | |
background:#0070E0; | |
overflow:hidden; | |
width:100%; | |
height:100%; | |
} | |
html { | |
height: 100%; | |
width: 100%; | |
margin: 0; | |
padding: 0; | |
} | |
#ember193{ | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
width:100%; | |
height:100%; | |
} | |
#svg_view{ | |
width:500px; | |
height:500px; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.14.1", | |
"EmberENV": { | |
"FEATURES": {} | |
}, | |
"options": { | |
"use_pods": false, | |
"enable-testing": false | |
}, | |
"dependencies": { | |
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js", | |
"ember": "2.18.2", | |
"ember-template-compiler": "2.18.2", | |
"ember-testing": "2.18.2" | |
}, | |
"addons": { | |
"ember-data": "2.18.2", | |
"ember-gsap": "1.0.1" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment