Blog Archives

How to Add Video Backgrounds to Your WordPress Website

Via:MyTutorialGuru.com

Displaying a video as the background of your website is a sure-fire way to make a strong impact on your visitors. While animated, or video backgrounds aren’t suitable for all websites, if it’s a good match for the type of site you are building, and you execute it correctly, then they can really help create a memorable first impression on your target audience.

As video backgrounds are a web design trend that hasn’t yet reached saturation point, it’s an effect you can still make use of in order to stand out from the crowd and grab the attention of your visitors.

Thankfully as a WordPress user there are a number of ways you can easily add video backgrounds to your entire site, or specific posts and pages, as well as creating full screen video sliders with advanced animation effects. If you’re using the Divi theme, then you will be pleased to know it couldn’t be easier to add video backgrounds to your WordPress website in a number of different ways.

However, there is more to adding this feature to your website than just uploading a video file to your WordPress Media Library and inserting into your pages. If you get the process wrong, then you could have a disastrous impact on the ability of your website to serve its purpose.

In this article we will look at when you might want to use video backgrounds, where you can find suitable files, and how you can go about adding them to your WordPress website.

Should You Use Video Backgrounds On Your Website?

Background videos are best used on websites that are aiming to make a big first impression on their visitors. The video content itself isn’t always the most important aspect, but rather the impact it will have on the viewer when displayed as the background of your site.

As we are talking about background video here, rather than a video welcome message, or other foreground video content, in most cases the exact footage of the video will be obscured. This can work in your favor, as it gives you some freedom in terms of what type of video content you use on your website. The footage doesn’t have to be too tightly focused on the topic of your website, provided the overall look and feel of the video matches the aesthetic of your brand and the overall design your website.

It is possible to add video backgrounds to any part of your website, from the home page, to the individual posts and pages on your site, right down to specific page elements. However, in most cases, it is websites with a static of fixed home page, rather than a traditional blog configuration, which are best suited to full screen video backgrounds.

It might be tempting to dive in and start using this feature on your website just because you can. However, in most cases its best to practice some restraint and truly consider if it’s really the best choice for the current design of your website, the content you are publishing, or your target audience.

However, if you do feel that video backgrounds are a good fit for your project, let’s take a look at where you can find good quality footage for your website, before we move onto how to add them to your website.

Where to Find Videos for Your Website Backgrounds

Shooting or creating your own video footage, for use as a background on your website is a great option. However, not everyone has the skills, equipment, or subject matter on hand, to produce the right type of content for their website.

Thankfully there are now plenty of resources online that offer high quality, royalty free stock footage, all at a range of prices. While your budget will largely dictate the quality and breadth of content available to you, it is possible to find high resolution videos that would work well as a background video, without breaking the bank.

Here are a few places where you can look for content for your background videos:

Free Videos Hosted at YouTube and Vimeo

There are countless videos hosted on YouTube and Vimeo, covering every topic imaginable. Most of the methods for displaying video backgrounds on your WordPress website give you the option of using one of those recordings as the source material.

While you should be able to find any type of video on either of those two large hosting sites, there are some drawbacks of using this content on your website. One is that the video you are referencing may one day become unavailable. This could be due to it being removed by the owner, taken down by the service provider, or many other reasons.

Another negative aspect of using a video hosted by sites like Vimeo or YouTube is that you may end up inadvertently displaying adverts on your website. While some options for adding video backgrounds to your website can overcome this now, this may not remain the case forever. Also, as YouTube displays links to related videos at the end of each item, these could be featured on your website too.

Furthermore, with these free video hosting sites, you often don’t have control over the quality of the video playback. As the quality can drop to quite low levels, it can have a real impact on the impression your video backgrounds make on your visitors.

However, it’s worth mentioning that the Vimeo Pro service is a good alternative to hosting the videos yourself, and it’s something we will look at in more detail in the next section.

Stock Video Libraries

Although there are now many places where you can source free to use, royalty free images for your website, the same can’t quite yet be said for video. However, there are a few places emerging where you can find royalty free, stock video footage for use on your website:

  • Videvo: over 2,000 completely free HD stock footage and motion graphics for any project.
  • Video Hive: very affordable collection of over 163,000 royalty free videos can be found at this Envato marketplace.
  • Video Blocks: large collection of royalty free videos that are ideal for video backgrounds, spread across many categories, with prices starting at $49 and annual pricing plans available.
  • Shutterstock: massive collection of royalty free stock videos to suit a range of budgets.
  • iStock: more premium, high quality stock video, covering a range of categories.
  • Pond5: royalty free stock videos starting at $1, with a free clip of the week.
  • Movie Tools: collection of free to use video loops of varying quality.
  • Stock Footage for Free: more free to use video clips

As you can see, while you might not be able to find the same quality free to use videos, as you can now with images, there is plenty of content available. With very affordable video files available from sites like Video Hive and Pond5, most projects should be able to justify the cost of including at least one video background.

How to Upload Video Files to Your WordPress Website

If you are planning on using a video file that you’ve downloaded or created yourself, rather than one someone else has upload to a video sharing site like YouTube, then you will need to host it somewhere so that it is accessible by your visitors.

While you might be tempted to upload the file straight to your WordPress Media Library, storing it on your web hosting server, this often isn’t the best solution. As the type of videos you would typically use as a website background are often of a large file size, this can have an impact on the performance of your site.

Depending on the type of web hosting you are using, uploading these large files could see you run the risk of having your account suspended, or incurring extra charges due to the additional bandwidth that is consumed, each time the video is loaded.

For these reasons, it’s recommended that you seek out an external service to host your video content. One option is to use a service like Vimeo Pro. However, Vimeo Pro isn’t the cheapest option around, and other services such as Rackspace might be a better option for most users. These services give you a place to upload your videos, before you embed them on your website.

Other benefits of using a premium video hosting service, is that your content can be protected in order to prevent it being downloaded without your consent.

If you are going to upload videos to your WordPress website, then you many run into an upload limit if the files are over a certain size. Fortunately it is possible to increase this limit (although your web host may have their own limits in place) and you can find the instructions on how to do so here. The free Increase Max Upload Filesize plugin also gives you a quick and easy way to increase the file size limit of your WordPress website.

Now that you know where to find suitable videos, and how to make them available for use on your website, let’s take a look at how you can set them as a background for your content.

How to Add Video Backgrounds to Your Website with Divi

Divi gives you two easy ways to add video backgrounds to your WordPress website. One option is to set the background of a page section to display a video. While the other is to create a slideshow which contains slides that have video backgrounds.

As Divi allows you to create full width sections for your custom page layouts, you can use this feature to easily add full width video backgrounds to those sections. You can also add full width video sliders to your website.

In this part of this guide, we will now walk through how you can use these two main options to add video backgrounds to your website.

Creating a Slideshow with Video Backgrounds

As part of its page builder, the Divi theme includes two easy to use slider tools:

  • A regular slider for creating mixed media slideshows that can contain text, images, and videos
  • A video slider for creating video slideshows

Both tools make it easy to add sliders to your custom page layouts. However, if you want your slideshow to contain links to the other pages on your website, or to external sites, then using the regular slider tool is the best option.

This is because unlike, the video slider, it gives you the ability of adding text, buttons, and other content to your slides – even those slides that have video backgrounds.

Creating a Regular Slider with Video Background

On the other hand, if you want to display a collection of videos in the slideshow format, then the video slider is a better option.

When creating a new section for your page layout, two of the options available are to add a regular section, and add a full width one. In you do choose to add a full width section, you then get the option of adding a full width slider to it.

The Divi slider tool makes it easy to add slides to your slideshow, and once you’ve created a new slide, you can then add a video to it. There are a number of options for adding videos to your slides, this include:

  • Enter the URL of a video hosted on YouTube or Vimeo
  • Upload a video file to, or select an existing item from your WordPress Media Library
  • Enter the URL of a video file that is hosted elsewhere

As mentioned earlier, using a video hosted on YouTube or Vimeo does have its drawbacks. This includes the possibility of the video being made unavailable at some point in the future. Therefore it’s good to see that you also have the option of quickly adding a self-hosted video the slide instead.

The Divi slider supports WebM and MP4 video file formats, giving you two good alternatives for using a self-hosted video as your section or slide background.  However, it’s recommended that you upload your video in both formats, as this will ensure maximum compatibility with a range of different devices, such as smartphones, tablets, and regular desktop computers.

After uploading a video file in these formats to your WordPress website, a content delivery network, or somewhere else, you can create a new slide for your slider. After doing so, you can click on the upload a video button to select the file from the WordPress Media library. If you are hosting the video elsewhere, you can simply enter the URL of the video file instead.

If you want to add any other content to the slide with the video background, such as text or images, you can do so from the same settings page.

Now you will have at least one slide in your slideshow that features a video background.

Adding a Video Background Section to a Page

As well as creating a slider with video content, you can also set the background of a section of your page to display a video.

After creating a new page, or opening an existing one for editing and launching the Divi Page Builder, you can click on the Section settings icon.

Doing so then displays the section module settings panel. As well having the option of setting a background color and uploading a background image for the section, you also have the ability to set a background video instead.

The options for doing so, again includes uploading or specifying the URL of either a WebM or MP4 video file. You can also set the width and height of the background video. Once you’ve specified a video, your section will now have a video background for this part of your custom page layout.

As the above information covers how to set a background for a section, you can also add more content to the section. This additional content will then overlay the background video. This is done by adding one or more modules to the column and row based layout to further build your page and its content.

Once you’ve created your custom page layout, complete with additional modules and custom content, you should now have a page with an animated background.

The Divi page builder tool gives you the ability to add multiple sections to a page. This means that you have the option of creating a page with multiple video backgrounds, which are displayed one after another, complete with optional parallax scrolling.

Plugins for Other WordPress Themes

If you aren’t using Divi, or another WordPress theme that makes it easy to set video backgrounds for your pages, then there are some plugins available that can help.

If you want to use a video from YouTube as a background on your website, then the free mb.YTPlayer for background videos plugin could be just what you are looking for.

The plugin gives you the option of setting a YouTube video as the background image of your home page and blog archive page, as well as on individual posts and pages.

If you do want to display a YouTube video as the background on the home page of your website, you can enter the video URL on the settings page of the plugin. Setting a video background on individual posts and pages, takes place on the edit screens for those item.

When adding a YouTube URL, you can enter the address of multiple videos and the plugin will choose from the list at random, each time the page is loaded. Through the settings you can also set an opacity for the video, enter the points at which the video should start and stop, and set the volume level.

You can also set the video playback to loop continuously, as well as controlling the visibility of the video playback controls.

When testing the plugin, it did a great job of displaying a full screen video background, using a video from YouTube. The only downside is that you cannot set a background video globally, that will be used on every post and page on your site. Therefore, you would have to manually set the background video for each piece of content you publish, in order to create a consistent look throughout your website.

If you are happy to use a video hosted by YouTube, and you don’t mind the limitations of this free plugin, then mb.YTPlayer for background videos does a good job of allowing you to quickly setup video backgrounds for your WordPress website.

Easy Video Background WP

If you want to set the background of your website to display a video from somewhere other than YouTube, then upgrading to the premium Easy Video Background WP plugin is one option open to you.

For only $14, a whole world of possibilities open up when it comes to adding video backgrounds to your WordPress content. The features of this plugin allow you to set a site wide background video, or add the video backgrounds on a page by page basis. You can also apply the video backgrounds to specific containers on your site, such as the post area.

With the Easy Video Background WP plugin, it’s also possible to set the videos to display as fixed backgrounds, or give them the ability to scroll with the rest of your content as the visitor moves down the page. Other options allow you to set a crop ratio for your videos, play them in a loop, enable auto-start, mute any audio, and set a fallback image for mobile devices.

The Easy Video Background WP plugin supports a good number of file types, including MP4, WebM, OCG, and FLV, as well as videos hosted on YouTube and Vimeo. You also get the option of setting an image overlay for the videos, with a custom opacity level.

Unfortunately, the video background wasn’t displayed in the sidebar area of the theme I was testing this plugin with. However, by purchasing this premium plugin, you do get access to the support ticketing system for reporting any issues you may experience.

Conclusion

Now you know the whys, wheres, and hows of adding video backgrounds to your WordPress website. With internet connection speeds getting faster, and the majority of websites yet to embrace full screen background videos, now is a good time to think about using this feature to help your website or blog stand out from the crowd.

Many of the solutions we’ve just looked at for adding video backgrounds to your WordPress website are fully mobile-friendly, and have the ability to not display the video to your smartphone and tablet using visitors.

While video backgrounds won’t work for all websites, for some they can be a great way to not only make a strong impact on your visitors, but also get your message across in a way that text and images alone, often cannot.
[via]

Advertisements

Best Plugin to Create a School Website in WordPress

Via:MyTutorialGuru.com

WordPress is a fine platform for building websites for schools. And, you have lots of options. This can be a website that works like a brochure that gives information about the school, a website where students can see their student information, or a full online school where students can log in and take classes through the website. It doesn’t even have to be a full school. It can be anything from a site where you provide a few classes or it can be a full-blown college. Whether you’re creating a school for a single teacher or a staff of college instructors, WordPress has everything you need.

What a School Website Needs

Take a look at what most of the school sites have in common (Google a few and you’ll notice that most have similar pages and layouts):

  • About page – information about the school (location, accreditation, etc.)
  • Courses – both summaries and detailed information about every course
  • Classes – information about every individual class
  • Tuition – costs and how to pay
  • Forms for signing up for classes
  • Faculty bios and information
  • Logo
  • Academic banner image
  • Frontpage

There are two primary types of websites for schools:

  1. Information only – this is a brochure that tells about the school and the courses and classes. It’s the same as a printed catalog.
  2. Membership site – this is a site where students and faculty can log in and see their grade information, submit homework, instructors can manage courses that take place both online and offline, and where students can take the class online.

Regardless of whether or not the school site will be a membership site, the information portion is the same on all types of school websites. To build a school website, this is the best place to start. Online courses will be added to this. The brochure-style site is just a simple matter of setting up the pages listed above and choosing one to be the home page. You will then build your navigation structure and upload all of the necessary documents.

The school brochure will be the backbone that you build from. Taking that into the realm of online course management and online courses, you will need plugins that will help you create and manage the courses, allow students to enroll and provide the means for instructors to evaluate student’s work, receive payments for the classes, and provide a delivery system for the classes. By far the best way to do this is with a plugin.

Plugins

Plugins for schools have various functions. Some focus on student management, others focus on course management, and still others focus on providing a platform for the online class. Some only provide a way to add classes to your site without creating a full school. What you need, of course, depends on the kind of school website you want to make.

If your school will never provide classes online, then you won’t need to bother with a plugin that offers that feature (unless you just like the management features better). However, if it’s possible that you will one day offer online classes, then I recommend starting with a plugin that does provide this functionality and just not use that feature until you need it. This way you will be able to use the same plugin for course management as you do for the class delivery platform.

You could use a conglomerate of plugins/platforms together to build your school. For example, you can combine the selling functionality of WooCommerce with the classroom functionality of Moodle with the CMS functionality of WordPress. This conglomeration might be your best choice if you already use WooCommerce and Moodle, but a simpler choice would be to use a plugin that handles everything in a single package. This is known as an LMS (learning management system). Here are a few plugins that can provide just the basics or an all-in-one platform.

teachPress

How to Create a School Website with WordPress teachPress

This free plugin is a course management system. It adds two tabs to your dashboard: course and publications.

Course

From the course tab you can create courses and student accounts.

How to Create a School Website with WordPress teachPress 2

You create a new course by filling in all of the general information including course name, description, dates, room, instructor, and an image. You will also create student accounts from this tab in the same way. Once you’ve created the course you can select it and add documents, enrollments (see who is enrolled and add students to the course, send email, and export the list), perform assessments for each student, and user capabilities.

This is where you describe the publications that will be used for the course. It can be a book, booklet, article, chapter, presentation, online, etc. You fill in all the information and provide links if available. You can import and export documents and you can add them to your list of publications.

Creating a Page

How to Create a School Website with WordPress teachPress 3

You create the page for the class using a shortcode. A button is added to the visual editor. When selected, it will open a drop-down menu where you can choose which shortcode to place on the page. You can add a shortcode for courses and publications. For courses it will give you a list, documents, information, and an enrollment system. For publications you get a list, tag cloud, and a search.

How to Create a School Website with WordPress teachPress 4

Selecting one will give you a pop-up where you can choose the details you want.

How to Create a School Website with WordPress teachPress 5

I like the look and feel of this plugin. It does a great job of providing info for the class and allowing student to enroll. The focus of this plugin is course management. It’s very easy to use.

CoursePress

How to Create a School Website with WordPress CoursePress

This one lets you set up online courses with learning units that you can sell. You can utilize quizzes, video, audio, assess student’s work, and more. Everything you need is here to provide free and paid courses. It gives you lots of control and functionality including adding and managing courses, categories, instructors, students, assessments, reports, notifications, discussions, and more. To sell courses you will need a plugin called MarketPress.

It comes with example courses already created. You can delete them or edit them to make your own. To create a course you fill in all the information for the course overview, description, instructor, dates, classes, discussions, workbooks, enrollment, and cost. You can have live chats, a complete discussion board, audio, video, and course previews.

You publish the course on a page or post using shortcodes. You can set attributes within the shortcodes or just leave them at default. There are shortcodes for:

  • Instructor list
  • Instructor avatar
  • Instructor profile URL
  • Course details
  • Title
  • Summary
  • Description
  • Start and end dates
  • Enrollment start and end dates
  • Enrollment type
  • Class size
  • Cost
  • Language
  • List image
  • Featured video
  • Thumbnail
  • Media
  • Join button
  • Action links
  • Calendar
  • Course list
  • Featured course
  • Structure
  • Signup / login page
  • Student dashboard template
  • Student settings template

You have to set up the structure of the pages yourself using the shortcodes. You can set attributes for each of these items. With this level of complexity you can create advanced course platforms. This also makes the system more difficult to learn and setup. It also includes widgets for the course calendar, categories, and course structure. It works and looks great, but it is a lot of work.

The free edition limits you to two courses. There is also a pro edition that costs $19 per month and includes unlimited courses, unlimited downloads, unlimited sites, and support.

LFE online courses

How to Create a School Website with WordPress LFE online courses

This one lets you create video-based courses that you provide to your students- providing both course management as well as course delivery. Billing, hosting, and security are provided by LFE and integrated into your WordPress site. You can provide classes on your site or turn your site into a complete school. It can be integrated with Facebook, MailChimp, and with your own store. You have full reports and stats. LFE gets 15% and you get 85% of the sale.

How to Create a School Website with WordPress LFE online courses 2

The dashboard is intuitive to use. From here you can create courses, quizzes, coupons, upload videos, create a store, and view reports.

How to Create a School Website with WordPress LFE online courses 3

You create the course from the WordPress dashboard. You add all of the descriptions, content (video), pricings, quizzes, certificates, coupons, etc., and then you are ready to publish. Although the course is hosted be LFE, it is integrated into your WordPress site so your visitors never leave your site. You can even import your courses from Udemy if you want.

I like the way this platform works. You create the course but you don’t have to worry about hosting the course, handling payments, or your visitors leaving your site. There is a lot involved in creating a course, but it is intuitive, so there’s no learning curve to slow you down.

Good LMS – Learning Management System WP Plugin

How to Create a School Website with WordPress Good LMS Learning Management System WP Plugin

This one is a complete course management and delivery system. It has a nice system for creating courses and it looks great. The courses have a ratings system so students can rate their experience.

How to Create a School Website with WordPress Good LMS Learning Management System WP Plugin 2

The courses show a progress bar so students will know their current position within the course. The course itself can be a mix of text and video. As they go through the pages, the progress will change to follow them.

How to Create a School Website with WordPress Good LMS Learning Management System WP Plugin 3

At the end of the course they can take a timed quiz, which can be a combination of multiple choice and written. There is a certificate and badge system so you can choose the type of award students receive upon completion of the course. You can see this in the demo.

There are several different payment methods including PayPal, Stripe, Paymill, Authorized.net, bank transfer, etc. You can even have onsite courses and just use the system as a means of payment and course tracking. It even has commission rates for instructors.

The plugin costs $30 for use on a single site.

WP Courseware

How to Create a School Website with WordPress WP Courseware

This plugin has tons of features including the ability to easily create courses, modules, and units. There are lots of features for quizzes such as time limits and various question types. It has unlimited modules, courses, and units. It includes all of the student management features you need such as enrollment, grade tracking, course tracking, notifications, etc. There’s even a survey tool so you can get feedback on your courses. It integrates with other e-commerce and membership plugins to handle payments.

How to Create a School Website with WordPress WP Courseware 2

It has a demo where you can see how it all works. With this one you can create courses, modules, and classes. You can add text or video for the class itself and you can publish a course just like you do a post or page. You can drag and drop units into modules to create courses. You can place modules into pages and posts by using shortcodes, or you can use the widget to place them in your sidebar. It works great on mobile devices. It’s simple to use, but having to integrate an e-commerce solution for payments will take an extra step after the install.

This one is a premium plugin that costs $99 for 2 licenses, $125 for 10, and $175 for 25.

Sensei

How to Create a School Website with WordPress Sensei

Sensei from WooThemes integrates perfectly into WooCommerce to create a nice online course platform. It uses a custom post type called Lessons. You can create courses, lessons, and quizzes, and you can set prerequisites for courses and lessons. It uses WooCommerce (surprise!) as its payment platform, which treats a course as a product. Since it uses WooCommerce, you have full access to all of the e-commerce features that WooCommerce offers, so you can have coupons, special sales, etc.

It includes virtually unlimited quiz types, easy quiz grading, and a question bank. Course analytics provides an overview of content, quizzes, and registered students. It provides course progress, certificates, badges, and students can share their grades on social networks. Courses can be onsite, or online with video, audio, images, and text. You can provide materials through media attachments. The course can be reviewed by students.

How to Create a School Website with WordPress Sensei 2

There is a demo site where you can see the structure and look of the courses. The demo uses a combination of text and video that looks sharp and the navigation structure is easy to follow.

It works with any theme and costs $129 for a single site license, $179 for 5 sites, and $279 for 25 sites.

LearnDash LMS

This one allows you to use any kind of media to create and deliver your courses. The sales platform is built in. It includes forums that can be private or public, and course specific. You can set prerequisites and have multitiered courses. It has lesson timers, advanced quizzing, group management, multisite, and tons more. It is responsive and works with any theme.

How to Create a School Website with WordPress LearnDash LMS 2

There is a demo site where you can see what lessons might look like. The lesson structure looks smooth and easy to navigate. It has a nice course navigation feature and a progress bar. You can see the course content, take the quiz, and see your achievements. You can set a simple or complex hierarchical structure for the courses, and it will label them as complete before allowing students to continue through the course.

This is a premium plugin. The Basic package is $99 and includes an unlimited license with 1 year of support. The Full package is $129 and adds the pro panel.

Wrapping Up

Whichever type of school website you choose to build, whether it’s information or a complete online school, WordPress has the tools you need to make it work and look great. You can add courses to your site, create a complete school navigation structure, or create a site with information about the school.

Your turn! Have you created a school website with WordPress? Did you use one of the plugins I discussed here? Did I leave out your favorite? I’d like to hear about it in the comments below!
Via: elegantthemes.com/blog

A Truely Simple JavaScript Plugin For Responsive Navigation

Via:MyTutorialGuru.com

There are several ways to make navigation responsive, and usually the solution we need is quite straightforward. But despite the apparent simplicity, there are many underlying factors which, when thought through and implemented properly, can make a simple solution even better without adding more complexity to the user interface.

One of the problems I’ve encountered while building responsive navigation’s is that browsers currently don’t support CSS3 transitions to a height which is defined auto. Most of the time, we shouldn’t use fixed height either because the height of menu items might not be the same in all browsers, and the number of items may change. I also always try to reduce the weight of pages I build, so I’ve been wanting a solution that doesn’t require a big library such as jQuery to work.

Today, I’m pleased to introduce Responsive Nav, a free and open-source JavaScript plugin that solves these problems and more in one tiny package. It’s released under the MIT License, so you can use it in all of your projects for free and without any restrictions. The solution is not one size fits all, nor is it meant to be. But for those who are looking for a solution that does one thing well, it’s definitely a good choice.

responsivenav new4The official site, view live at responsive-nav.com.

Features

Responsive Nav is a tiny JavaScript plugin which weighs only 1.6 KB minified and Gzip’ed, and helps you to create a toggled navigation for small screens. It uses touch events and CSS3 transitions for the best possible performance. It also contains a “clever” workaround that makes it possible to transition from height: 0 to height: auto, which isn’t normally possible with CSS3 transitions.

  • Simple, semantic markup.
  • Weighs only 1.6 KB minified and Gzip’ed.
  • Doesn’t require any external library.
  • Uses CSS3 transitions and touch events.
  • Removes the 300 ms delay between a physical tap and the click event.
  • Makes it possible to use CSS3 transitions with height: auto.
  • Built with accessibility in mind, meaning that everything works on screen readers and with JavaScript disabled, too.
  • Works in all major desktop and mobile browsers, including IE 6 and up.
  • Free to use under the MIT license.

example opt1The official demo, View live at responsive-nav.com/demo.

How It Works?

Responsive Nav is the successor of TinyNav.js which was released in 2011. While TinyNav worked so that it converted a regular navigation to a select menu, Responsive Nav only hides the original navigation and adds a toggle which opens and closes it. Responsive Nav doesn’t basically alter the html structure of the document at all, so it’s in that sense a much simpler solution.

Responsive Nav works by calculating in the background the max-height needed to fit all the menu items. When the user taps the navigation toggle the plugin uses CSS3 transitions to transition from a height that is set to 0 to the max-height it calculated earlier. Responsive Nav also attaches a touchstart event listener to the toggle, which makes it possible to remove the default 300 ms delay that happens when using click events.

Why Choose This Over Another Solution?

Responsive Nav is lightweight and doesn’t depend on any external library. The navigation opens instantly on touchstart — no more 300 ms delay on touch devices. It’s also (as far as I know) the only responsive navigation plugin out there that uses CSS3 transitions with variable height (although correct me if I’m wrong). Responsive Nav is also built with accessibility in mind, meaning that everything works on screen readers and with JavaScript disabled, right out of the box. Finally, Responsive Nav has been tested to work on 60+ mobile and desktop browsers, so that you would’t have to worry about browser support. See the full list of tested platforms.

Demo And Download

Via: smashingmagazine.com