-
-
Save sheriffderek/ea3e589653c75d6d33a5488c5db31081 to your computer and use it in GitHub Desktop.
ember-flickity example [it's broken]
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
/* external css: flickity.css */ | |
* { box-sizing: border-box; } | |
body { font-family: sans-serif; } | |
figure { | |
display: block; | |
margin: 0; | |
padding: 0; | |
} | |
figure img { | |
display: block; | |
width: 100%; | |
height: auto; | |
} | |
.carousel { | |
background: yellow; | |
} | |
.carousel figure { | |
width: 100%; | |
} | |
.flickity-wrapper { | |
/* min-height: 300px; */ | |
} | |
.flickity-viewport { | |
min-height: 300px; | |
} | |
.flickity-slider { | |
/* min-height: 300px; */ | |
} |
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.15.0", | |
"EmberENV": { | |
"FEATURES": {} | |
}, | |
"options": { | |
"use_pods": false, | |
"enable-testing": false | |
}, | |
"dependencies": { | |
"flikcityCSS":"https://npmcdn.com/flickity@2/dist/flickity.css", | |
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js", | |
"ember": "3.2.2", | |
"ember-template-compiler": "3.2.2", | |
"ember-testing": "3.2.2" | |
}, | |
"addons": { | |
"ember-flickity": "0.1.5" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment