

Ignore the animation stuff for now and focus on the icon-btn class used to render the button. We get the icon from FontAwesome () and style (using Sass of course) the button a bit to remove borders, make its background-color transparent, put a nice color to the refresh button and change the cursor to the “hand pointer” when the user hovers over the button. We’re obviously going to need a button and a refresh icon. A refresh button like the one above is something that the user sees and utilizes in a regular basis in other applications like the operating system (especially mobile OSes) and the browser itself.Įnough talking, let’s get to the code. Adding to that, users find it easier to use an interface that seems familiar to them. The reason for this is that the user prefers to scan the page instead of reading it so removing unwanted text from action buttons and filters actually makes the browsing experience faster and more pleasant.

Looks way more slick and increases the UX points of your site. Usually for that kind of task you will need to employ a user-friendly icon button and not just throw a “Refresh” button. This example’s use case is a pretty common one, you have some data displayed to the user via a grid, a chart or simply an unordered list and that data may change overtime so you want to give the user the change to reload the data again from the server asynchronously. We’re not going to use jQuery because it’s not really needed and as we’ve seen in a previous blog post jQuery makes our scripts slower so avoiding it whenever possible will transform our code to be more efficient even if it may take a few more lines to achieve the same thing.
#When i reload in lrtimelapse it puts me keyframes on top how to#
In this tutorial we are going to see how to create a CSS animation and trigger it every time we click on a button.
