Squeezy Stretchy Flexbox Nav

Squeezy Stretchy Flexbox Nav

Go to Source

I saw an interesting take on off-canvas navigation the other day over on The New Tropic. It wasn’t the off-canvas part so much. It was how the elements within the nav took up space. They stretched out to take up all the space, when available, but never squished too far. Those are concepts that flexbox makes pretty easy to express! Let’s dig in a little.

Here’s the nav, a video showing what I mean:

My favorite part is how there are submenus. When a submenu is toggled open, the same rules apply. If some stretching has happened, the nav items will shrink in height, making room for the submenu. But never shrink too far. If there isn’t room, the menu will just scroll.

Standard Two-Level Nav HTML

Pretty easy to mock out with Emmet:

<nav class="main-nav">
  <ul class="nav-list">
    <li><a href="">Lorem ipsum.</a></li>
    <li>
      <button class="submenu-toggle-button">+</button>
      <a href="">Explicabo, perspiciatis.</a>
      <ul class="submenu nav-list">
        <li><a href="">Lorem ipsum.</a></li>
        <li><a href="">Culpa, qui!</a></li>
        <li><a href="">Repudiandae, eaque.</a></li>
      </ul>
    </li>
    <li><a href="">Sit, dolor.</a></li>
    <li><a href="">Dicta, possimus?</a></li>
    
    <!-- etc -->

  </ul>
</nav>

Flexbox the Column

Let’s make sure that list is as tall as the browser window, which is easy with viewport units. Then make sure each of the list items stretch to fill the space:

.main-nav > ul {
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.main-nav > ul > li {
  flex: 1;
}

We’ve already gotten almost all the way there! Stretching works great, only when there is room, like we want:

Quick Toggles

We have a <button> in place to toggle the submenus (arguably, we should probably place those buttons with JavaScript, since they don’t do anything without). Here’s how they could work. The submenus are hidden by default:

.submenu {
  max-height: 0;
  transition: 0.5s;
  overflow: hidden;
}

We can open it with a class:

.submenu.open {
  max-height: 200px; /* non-ideal magic number */
}

We’re animating to an unknown height here, which is tricky. We hope to have a good article addressing this out soon (there are options).

Toggling classes is plenty easy:

var buttons = document.querySelectorAll('.submenu-toggle-button');

[].forEach.call(buttons, function(button) {
  button.addEventListener('click', function() {
    var submenu = button.parentNode.querySelector('.submenu');
    submenu.classList.toggle('open');
  });
});

That gets those submenus behaving like we want:

Demo

You’ll probably need to pop over to the Pen to play with the vertical stretching stuff.

See the Pen Squeezy Stretchy Nav by Chris Coyier (@chriscoyier) on CodePen.


Squeezy Stretchy Flexbox Nav is a post from CSS-Tricks

Go to Source

Improve your designs with these 4 must-have Photoshop downloads

Improve your designs with these 4 must-have Photoshop downloads

Go to Source

Layer Styles

Layer styles are one of the most useful tools ever created. No matter what kind of a graphic you are creating, layer styles will make your text much better. You simply create a text (or any other object) and apply the style to your layer one by one until you find the perfect fit. They instantly change any text into a much more professional-looking design.

Photoshop comes with about a dozen layer styles already installed, but the nice thing about layer styles is that you can find lots of them free online. There are thousands out there, downloadable and easy to install. You just put all of your layer styles into one folder and then you can upload them all at once. Also, you can export your entire collection of layer styles – you will then have everything you need in one small file even if you reinstall Photoshop.
More info: Photoshop layer styles

Shapes

Shapes are another great thing to download. Photoshop has some shapes already available, but unless you are okay with a circle, square and arrow shape, you should consider some more. This will allow you to choose from your entire collection of shapes whenever you need to create something that you would normally have to draw manually.

Shapes are also very easy to find online and download for free. To install them, download them somewhere on your hard drive, go into Photoshop and choose the custom shapes tool. After this click on the shape picker, press the little play button to the right and choose LOAD SHAPES when the dialogue box pops up. Finally, find your shape file and upload it.
More info: Brusheezy

Fonts

This may seem like an obvious one, but many people fail to download new fonts because they already have a few dozen to choose from as a part of Windows and they don’t think they need any more. But there are lots of cool fonts out there and you might be surprised at just how much better you can make a graphic if it has the right font.

One of the most popular places to get free fonts is 1001freefonts.com, which by now has tens of thousands instead. You can download them for free one at a time or the whole collection for a small fee. You should also be aware that some fonts cannot be used commercially so you might want to search for a commercially licensed free font for each new project you do.
More info: 1001 free fonts

Pixie

The last useful tool that we are going to discuss isn’t actually a Photoshop asset – it is simply a tool that makes working in Photoshop a lot easier. Pixie is a tool that tells you the exact Hexadecimal or RGB of any color that you place your mouse on.

This is extremely useful when you are trying to design a graphic that will match the look of your blog or website. You can manually set the RGB on the color picker and get the exact color that you are trying to match in Photoshop.
More info: Pixie

This is a guest post by Emily Miller.


Go to Source

The best new portfolio sites, February 2017

The best new portfolio sites, February 2017

Go to Source

Welcome, readers. I realize that some of you may have had romantic plans this month, but now that’s out the way, we need to look through a bunch of portfolio sites and rate them without actually assigning a numerical value to them. I assure you, your friends and loved ones will understand. (Who doesn’t love relentless ironic self-awareness?)

Once again, we have a month with no real reoccurring theme, except maybe minimalism, but that hardly counts at this point. There’s a fair variety in the sites featured this time around, so we’ll have a little something for just about everyone. Perhaps people have tired of bandwagons…

…perhaps pigs are even now evolving wings. Let’s get started…

Prolog

Prolog’s website is simple and bold It’s black and white except for the pictures, and it’s very in-your-face about it. If it’s simplicity you’re looking for—and let’s face it, that’s what we all want—then this is a design you’ll want to pay attention too.

It’s hard to pull off a site this simple.

Studio Ultra

Stuidio Ultra takes that simplicity even further by making their portfolio just a list of project names. Oh, and you get to see some images on hover. That’s a thing a lot of people are doing now, and this site does it quite well.

North2

North2 breaks the mold a bit by taking classic corporate style minimalism, and giving it an actual personality. This is made possible with some simple changes to the layout, and a heavy dose of animation.

Plus, there’s this little thing with bubbles (sort of) on the About page… just go play with it. It’s not the most intuitive way to show off your staff, but it’s fun once you figure it out. The message is simple: these are obviously professionals, but they’re not cookie cutter professionals.

Caava Design

Caava Design brings us some of that retro-flavored flat design that was everywhere for a while. By combining illustration with soft colors and that classic coffee-brand typoraphy (they do tend to work with coffee brands, so the messaging is on-point) browsing through this site is a simple, pleasant experience.

Avex

Avex’s website won’t stand out as the most creative site on this list, but it looks good, works well, and gets the point across. It’s almost a stereotype of good design. It’s also one of the few sites I’ve seen recently to take full advantage of newer techniques for vertically aligning text.

I mean, it’s there. Might as well.

Verde

Verde looks like your standard portfolio site at first. Slideshow at the top, fairly standard portfolio layout below. What shakes things up in this case, is that slideshow back at the top. Go look at it again.

Those aren’t images. Those are the lives sites, shrunk down and placed in an iFrame. You can view and navigate them right there in the slideshow. It’s a bold choice, to say the least. But hey, they really stuck with the idea of showing off their work.

Shape

Shape’s portfolio looks a bit like an eCommerce site in terms of overall style and feel. Mind you, this agency specializes in eCommerce sites, so really, what do you expect.

It’s a quality site on its own, but it’s also an excellent example of the way design styles can be translated between different kinds of sites. These people are all about sales, and you can see it right from the first glance. If that’s not good design, I don’t know what is.

Huemor

Huemor’s website states that their work is no joke. That just doesn’t seem right to me. If you’re going to pick that name, I mean… you could at least work for comedians. Their site looks great though. The graphic styles vary from page to page, tied together by consistent, and consistently beautiful, typography.

Gridonic

Gridonic takes us once again into that beautiful world of the overlapping everything. They take it a step further by utilizing 2.5D techniques… by which I mean they added some drop shadows—it disturbs me how easily I came up with a corporate-style way to say that.

Also, browsing through a site in a language I can’t read gives me a new appreciation for good typography. If it’s nice to look at even when I don’t know what they’re saying, that’s good work.

Momento

Gather ’round dear Readers, and check out Momento to see a well-done horizontal layout. On top of that, the layout handles high resolutions really well. With a solid sense of style in every other respect, the creative layout shakes things up just enough to be interesting without getting in the way.

Wokine

Wokine’s website is minimalist, animated, and has great typography. Sure, we’ve seen a lot of that these days, but this is just really pretty too. And as I just mentioned, I love a site that can stretch to high resolutions and look great doing it.

the Workshop

The article “the” in the Workshop is intentionally left with no capital letters, because that’s how they do it. The site clearly adhere’s to the Swiss school of design, from the minimalist layout, to the striking use of imagery blended with the layout, to the vertical navigation on the side, and, of course, the text at the top that says “Geneva – Switzerland”.

You’ll rarely find a better example of this sort of bold minimalism, and it’s a pleasure to scroll through.

Thaddé Méneur

Thaddé Méneur’s website is heavily influenced by the same style as the last one, but it taps in to the visceral human desire to read less text and see more pretty pictures. It’s a bit heavy on the JS frankly, but it looks great. Go, look, bask in the text that overlaps onto other things.

Will Sanders

Will Sanders’ portfolio adopts the now quite popular trend of collage-style photography portfolios. What makes this one stand out is that it doesn’t depend on the photography for all of its color. And that color isn’t solid blue! It’s… well it’s solid red, but it’s definitely eye-catching.

Mind you, I probably would not have gone with the rotated navigation like that. I have a headache as I write this, and the eye strain involved in reading text like that is a bit of a pain. Were I healthy, it wouldn’t be so much of an issue. Nothing like a bad cold to make you see UX issues differently.

Nobody

Nobody’s site depends almost entirely on the strength of its typography, and it works. There’s no imagery at all until you start hovering over project names.

As with all sites of its kind, this is a bit of a gamble, but I think it works.

Glamuzina Architechts

Forget typography-based sites for a moment, because Glamuzina Architect’s stie is practically an abstract work of art with a bit of type thrown in. Okay, that may be a small exaggeration, but these guys have truly embraced the post-modern feel. As a visual experiment, I love it.

I would love it more, except for the highly unintuitive navigation. When you’re forced to hover over every bit of text you can find and hope it might be a link, that’s less than ideal.

Yummygum

Yummygum is one of my personal favorites on this month’s list. And what’s not to love? Diagonal lines, fantastic use of white space, great type, great contrast… I’m definitely biased, but this site just happens to hit all of my personal check boxes.

Diane Martel

Diane Martel’s photography portfolio is something else entirely. It’s a mix of collage, slideshow, presentation… and the images change when you hover over the names of her projects. It’s like they decided to go for everything. You could almost call it tacky, but it doesn’t quite cross that line.

In fact, considering the subject matter of the photos, it seems kind of perfect.

Rival

If Rival’s website looks a bit like a premium Magento theme, that’s because they specialize in Magento-based eCommerce sites. Like Shape, mentioned above, the work that Rival does is clearly reflected in their own site, and it works.

Peter Komierowski

Peter Komierowski’s portfolio shows off his logo and branding work in what is, perhaps, thew best way possible: with no distractions whatsoever. See the logos, click on them to find out more, and that’s it. Minimalism in what is perhaps its purest form.

47 Professional Handcrafted Fonts from FontArt – only $24!

Source

Go to Source

Current Trends And Future Prospects Of The Mobile App Market

Current Trends And Future Prospects Of The Mobile App Market

Go to Source






 



 


The mobile app market is growing faster than a beanstalk. The industry is huge and growing daily, and there is no end in sight. Expectedly, the mobile developer population has boomed, and the number of mobile apps in the market has hit new heights. The revenue generated by the global mobile app industry has skyrocketed.

Current Trends And Future Prospects Of The Mobile App Market

Hybrid monetization models, such as in-app ads and in-app purchases, are quickly gaining popularity in the business world. Most studies show that in-app advertising is set to be a key driver of mobile growth over the coming years (see Statista’s, IHS Markit’s and Forbes’s reports).

The post Current Trends And Future Prospects Of The Mobile App Market appeared first on Smashing Magazine.

Go to Source

How to Add Random Header Images to Your WordPress Blog

How to Add Random Header Images to Your WordPress Blog

Do you want to add random header images to your WordPress blog? Most WordPress themes come with built-in support to add header images. These images can completely change your site’s look and feel. In this article, we will show you to how to add random header images to your WordPress blog without writing any code.

How to add random header images in WordPress

Most free and premium WordPress themes come with custom header support. Custom headers in WordPress are a theme feature which allows WordPress themes to designate a header area showing an image.

Header image in WordPress

Custom header is different than background image feature which allows you to set a cutom background image on your WordPress site.

Having said that let’s take a look at how to add random header images to your WordPress blog.

Method 1. Random Header Images Using WordPress Theme Customizer

This method is easier and is recommended for most WordPress users.

You need to head over to Appearance » Customize page to launch WordPress theme customizer.

Changing header image in WordPress

Next, you need to click on ‘Header’ tab to expand it. The header option can also be labeled as header image or header media in your theme.

You will see your site’s current header image, and any other header images available to use.

You need to click on the ‘Add image’ button to upload the images you want to use as header images.

Once you have uploaded a few images, they will appear under recently uploaded images.

Randomize header image

Now you need to click on ‘Randomize uploaded header’ button under recently uploaded images and then save your changes.

You can now visit your website and reload it to see header images change randomly.

Method 2. Add Custom Header Images on Select Pages Using Plugin

This method is more flexible and gives you more control on how to show different or random header images for WordPress posts, pages, category, or tag archives.

First thing you need to do is install and activate the WP Display Header plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to edit a post or create a new one. You will notice a new meta box labeled ‘Header’ below the post editor.

Random header for single post and pages in WordPress

Here you can select a previously uploaded header image to your theme and use it as a header for this post. You can also check the ‘Random’ option to randomly display a background image from your uploaded header images.

If you want to add more header images, then head over to Appearance » Customize and click on the Header tab.

Add more header images

Next, you need to click on the ‘Add image’ button to upload more header images. You don’t need to change the header of your theme just upload the images and exit the customizer.

The plugin also allows you to change header image for your category and tag archive pages.

You will need to go to Posts » Categories page and then click on the Edit button below category you want to change.

Editing a category

On the category edit screen, you will notice the new header section where you can select a header image or show random header images.

Random or fixed header image for category archive page

Don’t forget to click on the ‘Update’ button to save your changes.

That’s all, we hope this article helped you learn how to easily add random header images to your WordPress blog. You may also want to see our guide on how to boost WordPress speed and performance.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Add Random Header Images to Your WordPress Blog appeared first on WPBeginner.