@onsenui said in How to ask a question.:
You can include any other resources that you consider important to understand your question. For example you can add links to external pages or embed images in the post (drag and drop the images to the composer).
interesting great information :)
@emccorson said in OnsNavigator pushPage(page, [options]) , loads page with a significant delay. (Angular) 8 ball pool:
ons.preload looks like it should do the trick.
You just need to pass ons.preload the names of the templates you want to preload and then call .then on the promise returned by preload. In the callback function, do whatever you need to - this will run when the templates have loaded.
Thank you very much for your quick reply, much appreciated.
@scaffo said in ons-carousel animation:
Actually I think I figured this out myself, basically it isn’t designed to do this. The carousel element is a “swiper” , which apparently means it only swipes. The animation attribute doesn’t seem to care about fade/lift/etc. just “none” to turn it off. If it’s on, it swipes using the translate3d() happy wheels function
You can however still control the manner of swiping via the animation-options
Thank you very much for the reply, I will work on the information you gave me.
Ok I gave in and looked into using Browserify. Turns out I can get what I want with just this
var React = require('react');
var ReactDOM = require('react-dom');
var ons = require('onsenui');
var Ons = require('react-onsenui');
window.React = React;
window.ReactDOM = ReactDOM;
window.ons = ons;
window.Ons = Ons;