Everyone in the pigeon coop has been busy working on projects and playing each other in ping pong, but that has not stopped us from sharing some code snippets on CodePen.
There have been a few of them that stood out and have been picked to be featured on the homepage.
The first one is a tribute to the couple of sneakerheads we have in the office for one of the biggest sneaker releases of the year. I used box-shadow, transition, and animation to make it. The box-shadow is on the button where the horizontal and vertical shadow transitions on hover. The animation also starts on the button hover that transforms the image with a 2D translation and rotation simultaneously.
This animation is taking the circle from one y-coordinate to another while changing the opacity to fade in and fade out again. I added Parallax to the SVG, so it moves around depending on the user’s interaction with the page.
Click rerun in the CodePen or visit DNA Seattle to see this one in action. The glow effect is done by splitting every letter into a span. Each span has a delay on it where the opacity and text-shadow will change giving you the complete animation.
This is using background-clip, but cannot be used in any website yet because of cross-browser compatibility. It works on Google Chrome, Safari, and that’s about it. Here the text is transparent, the background is a gradient, and the background is clipped to only show where the text is. I added an animation that is slowly filtering the color hue, so you end up with a color changing header.