Looping Animation of text color change using CSS3

Use keyframes and animation property p { font-family: monospace; font-size: 3em; animation: color-change 1s infinite; } @keyframes color-change { 0% { color: red; } 50% { color: blue; } 100% { color: red; } } <p>lorem ipsum</p> CSS With Prefixes p { -webkit-animation: color-change 1s infinite; -moz-animation: color-change 1s infinite; -o-animation: color-change 1s infinite; -ms-animation: … Read more

Implement page curl on android?

I’m doing some experimenting on page curl effect on Android using OpenGL ES at the moment. It’s quite a sketch actually but maybe gives some idea how to implement page curl for your needs. If you’re interested in 3D page flip implementation that is. As for the formula you’re referring to – I tried it … Read more

Start Activity with an animation

I am using this in a current project of mine, it is basically pretty simple. You define a new animation style in your styles.xml, like this: <!– just defines top layer “Animation” –> <style name=”Animation” /> <!– the animations must have been defined in your “anim” folder, of course –> <style name=”Animation.MyAwesomeAnimation” parent=”android:style/Animation.Activity”> <item name=”android:activityOpenEnterAnimation”>@anim/myawesomeanimation_enter</item> … Read more

Add transition while changing img src with javascript

Here is a pure css solution using css transition. You can use a div as the container and set the background-image on hover. .image-container { background: url(http://placeholder.pics/svg/300×300/DEDEDE/555555/Old%20Image) center center no-repeat; background-size: contain; width: 150px; height: 150px; -webkit-transition: all .3s ease-in-out; -moz-transition: all .3s ease-in-out; transition: all .3s ease-in-out; } .image-container:hover { background-image: url(“http://placeholder.pics/svg/300×300/DEDEDE/555555/New%20Image”); } <div … Read more

How to change all the activity transitions at once in Android application?

You want to first create a <style> in res/styles.xml, like this: <style name=”YourAnimation.Activity” parent=”@android:style/Animation.Activity”> <item name=”android:windowEnterAnimation”>@anim/your_in_down</item> <item name=”android:windowExitAnimation”>@anim/your_out_down</item> </style> Then you can apply the style to a theme, in the same file: <style name=”YourTheme” parent=”android:Theme.Translucent”> … <item name=”android:windowAnimationStyle”>@style/YourAnimation.Activity</item> </style> And finally apply the theme to your activities in the manifest: <activity android:name=”.YourActivity” android:theme=”@style/YourTheme” /> Look … Read more

Vue.js page transition fade effect with vue-router

Wrap <router-view></router-view> with <transition name=”fade”></transition> and add these styles: .fade-enter-active, .fade-leave-active { transition-property: opacity; transition-duration: .25s; } .fade-enter-active { transition-delay: .25s; } .fade-enter, .fade-leave-active { opacity: 0 } Detailed answer Assuming you have created your application with vue-cli, e.g.: vue init webpack fadetransition cd fadetransition npm install Install the router: npm i vue-router If you … Read more