<style>
.fade-enter-active,
.fade-leave-active {
- transition: opacity 1.5s ease;
+ transition: opacity 2s ease;
}
.fade-enter-from,
.fade-leave-active {
}
.child-view {
position: absolute;
- transition: all 1.5s cubic-bezier(0.55, 0, 0.1, 1);
+ transition: all 2s cubic-bezier(0.55, 0, 0.1, 1);
}
.slide-left-enter-from,
.slide-right-leave-active {
`,
}
+// override existing style on dev with shorter times
+if (!__CI__) {
+ const transitionDuration = '0.5s'
+ const styleEl = document.createElement('style')
+ styleEl.innerHTML = `
+.fade-enter-active,
+.fade-leave-active {
+ transition: opacity ${transitionDuration} ease;
+}
+.child-view {
+ position: absolute;
+ transition: all ${transitionDuration} cubic-bezier(0.55, 0, 0.1, 1);
+}
+`
+ document.head.append(styleEl)
+}
+
const Parent: RouteComponent = {
data() {
return {
plugins: [
new webpack.DefinePlugin({
__DEV__: JSON.stringify(process.env.NODE_ENV !== 'production'),
+ __CI__: JSON.stringify(process.env.CI || false),
__BROWSER__: 'true',
'process.env': {
NODE_ENV: JSON.stringify(process.env.NODE_ENV),
// Global compile-time constants
declare var __DEV__: boolean
declare var __BROWSER__: boolean
+declare var __CI__: boolean