Creating a Border Animation Effect with SVG and CSS The website of Carl Philipe Brenner has some very creative and subtle animations and today we want to explore how to recreate a border animation effect using CSS transitions on SVG lines. View demo Download source Today we’d like to explore a very subtle, but interesting border animation effect that can be seen on the creative website of Carl Philipe Brenner. When you hover over one of the white portfolio items in the grid, you will see a subtle animation happening: the grid item becomes transparent and the border lines of each side animate clockwise, creating a really nice effect. In this case, the effect is done by animating the widths or heights of several spans with some JS. We’ll try a different approach that uses SVG and CSS transitions. Let’s take a look at the basic concept first, and then we’ll work towards the final effect. Please note that we’ll be using CSS transitions on SVGs which might not be supported in all browsers. The next step is to add the other lines. And that’s it!
CSS Transitions, CSS Transforms and CSS Animation - all one one page Introduction This website is designed to help you build modern sites that are able to make use of some of the newer, exciting parts of CSS. The site is currently focussed on CSS Transitions, Transforms and Animation, though I will be adding other topics as they become available on any major platform. Though of course your browser must support the technologies to use them, most things degrade nicely in older browser, meaning that you can use much of this today, even without a fallback. If you need to have the same appearance in older browsers (mainly IE6, 7 and 8), then all the animation bits can be easily covered by using jQuery's .animate(). 2D transforms can be emulated to a degree in older versions of IE, but 3D transforms can't. None of the actual animation uses javascript, though I am using jQuery to add and remove classes to add interactivity. If you are using a touch enabled device, replace hover with touch and hold wherever appropriate.
How to Make AJAX Requests With Raw Javascript Javascript frameworks have turned simple AJAX functions into one-liners. This is quite incredible, considering the fact that it would require more than twenty to accomplish the same thing with raw Javascript. Nevertheless, it's important to learn what's "under the hood". This is a relatively simple script that will allow you to asynchronously request pages by using a "load(URL, CALLBACK)" function. onreadystatechange will fire five times as your specified page is requested. 0: uninitialized1: loading 2: loaded 3: interactive 4: complete A value of "4" is what we're searching for. Modern browsers utilize the "XMLHttpRequest" object to make asynchronous requests. Instead, you could just write "var xhr = new XMLHttpRequest();". If making multiple requests, you might consider moving your code into its own object. I've no doubt that some of you will leave a comment stating something along the lines of, "Why would I ever do this when it can be done with just one line of jQuery?"
The Guide To CSS Animation: Principles and Examples Advertisement With CSS animation now supported in both Firefox and Webkit browsers, there is no better time to give it a try. Regardless of its technical form, whether traditional, computer-generated 3-D, Flash or CSS, animation always follows the same basic principles. CSS Animation Properties Before diving into the details, let’s set up the basic CSS: Animation is a new CSS property that allows for animation of most HTML elements (such as div, h1 and span) without JavaScript or Flash. Because the technology is still relatively new, prefixes for the browser vendors are required. All you need to get some CSS animation happening is to attach an animation to an element in the CSS: First, we have the animation code itself. When assigning the animation to your element, you can also use the shorthand: We can cut this down further by not entering all of the values. Those are the basics. Applying Principles of Traditional Animation This example demonstrates the features of CSS animation. Staging
angularjs - Using scope.$watch and scope.$apply Crafting Minimal Circular 3D Buttons with CSS The following post is written by Brandon Pierce. Brandon saw some nicely designed buttons by Wouter on Dribbble and set about building them with CSS. They came out nicely and he agreed to post about the process here. Here's what we are going to make in this tutorial: The Base HTML We will be using a simple unordered list1 within a <nav> tag to create our buttons. Some Resources These icons in the buttons come from the Fontello icon font and web app.The textured background is from Subtle Patterns. CSS for the Icon Font There are a few ways to go about this, but we'll go with this: CSS for the Buttons The buttons will be arranged horizontally by making the list items inline-block. The lovely three dimensionality of the buttons comes from a subtle gradient and bevel and embossing courtesy of a pair of box-shadows, one normal and one inset. We can flatten out the buttons a bit on :hover to create a pressed look. At this point our buttons should look like this: Not bad, but we have a ways to go.
Wireframing with HTML and CSS View codePlay Walkthrough Description This walkthrough shows the creation of a small wireframing framework which targets elements using attribute selectors and draws sketchy lines on one or more sides using the border-image property. The border-image property uses a translucent cloud image which is possible to create in most graphic editing programs If we decide to skip graphic editing programs and directly code wireframes, it opens up new possibilities for exploration such as: Adding responsive capabilities right from the wireframing stage. With the web making a big leap towards transitional interfaces, use of CSS3 animations, aniamted SVG, detailed user interaction, etc code driven wireframes could be of great help. Should I Work for Free?