Scrolling Gradient

If you want a gradient that changes as you scroll down a very long page, you can create a gradient with a bunch of color stops, apply it to the body and it will do just that.

But, what if you don’t want a perfectly vertical gradient? Like you want just the top left corner to change color? Mike Riethmuller, re-using his own technique from the CSS-only scroll indicator (A-grade CSS trickery), did this by overlapping two gradients. The “top” …

The post Scrolling Gradient appeared first on CSS-Tricks.

Read more

Anatomy of a malicious script: how a website can take over your browser

By now, we all know that the major tech behemoths like Facebook or Google know everything about our lives, including how often we go to the bathroom (hence all the prostate medication ads that keep popping up, even on reputable news sites). After all, we’ve given them permission to do so, by reading pages and pages of legalese in their T&C pages (we all did, didn’t we?) and clicking on the “Accept” button.

But what can a site do to …

The post Anatomy of a malicious script: how a website can take over your browser appeared first on CSS-Tricks.

Read more

70+ Corporate & Creative Business Card PSD Mockup Templates

The design of your business cards is vital if you’re looking to make a good first impression. In this post, we’ve collected over 70 of the best free and premium business card mockups that you can use for your next client meeting or design project. We’re not only covering corporate professional designs, but also profession-specific […]
Read more

15 of the Best WordPress Themes For Travel Websites

For travel enthusiast and professionals in the travel industry, WordPress is a heaven that offers zillions of fantastic themes. Tourism is a billion-dollar business and a staggering number of travelers use the WordPress platform to share their knowledge, insights, and experiences of travel and travel industry. These versatile themes offer varied options for personalization as …
The post 15 of the Best WordPress Themes For Travel Websites appeared first on Torque.
Read more

Design Systems at GitHub

Here’s a nifty post by Diana Mounter all about the design systems team at GitHub that details how the team was formed, the problems they’ve faced and how they’ve adapted along the way:

When I started working at GitHub in late 2015, I noticed that there were many undocumented patterns, I had to write a lot of new CSS to implement designs, and that there weren’t obvious underlying systems connecting all the pieces together. I knew things could be better …

The post Design Systems at GitHub appeared first on CSS-Tricks.

Read more

20+ Laptop Mockup Templates (PSD & PNG)

When it comes to presenting website and graphic designs to clients, using a laptop mockup can substantially boost its appeal. Do you have the right laptop mockup to take your work to the next level? There are many different ways you can use laptop mockup templates. You can use them to showcase your designs in […]
Read more

Building a Complex UI Animation in React, Simply

Let’s use React, styled-components, and react-flip-toolkit to make our own version of the animated navigation menu on the Stripe homepage. It’s an impressive menu with some slick animation effects and the combination of these three tools can make it relatively easy to recreate.

This is an intermediate-level walkthrough that assumes familiarity with React and basic animation concepts. Our React guide is a good place to start.

Here’s what we’re aiming to make:

See the Pen React Stripe Menu

The post Building a Complex UI Animation in React, Simply appeared first on CSS-Tricks.

Read more

Fast, Good, Local Site Search with Jetpack

If you have, say, 20 posts/pages on your WordPress site, the search functionality that is baked right into your self-hosted WordPress site will probably do a great job. Search is a pretty cool feature to ship with WordPress, truth be told. But as a site grows, you’ll find limits. How it works behind the scenes is a touch over my head, but as I understand it, it does a MySQL LIKE query on your post titles and post content. It

The post Fast, Good, Local Site Search with Jetpack appeared first on CSS-Tricks.

Read more