Quantcast
Channel: jQuery By Example
Viewing all 122 articles
Browse latest View live

7 Best Lightweight jQuery Data Table Plugins

$
0
0
Creating grids and tables for storing, organizing, and interacting with data and content can be done using HTML, but they can also be created quickly, easily, and more dynamically by using a jQuery plugin to get the job done. Check out the following list of some of the best, most lightweight jQuery grid plugins available.

1. jQuery Bootgrid


Inspired by Bootstrap and designed to match the aesthetics of the framework, this jQuery plugin can be integrated seamlessly with Bootstrap or be used independently of it on other frameworks or custom sites.

2. jsGrid


jsGrid is a lightweight, flexible plugin that makes editing data super easy. With the plugin, you can insert, filter, edit, delete, and sort data quickly.



ParamQuery is a basic jQuery grid plugin that lets you sort, filter, and edit data. Using this plugin, you can also export your grids to Excel or CSV files.



DataTables is a lightweight table plugin that allows you to add interaction controls to any HTML table, giving you the power to create flexible and dynamic data grids.


WATable calls itself the "Swiss army knife" of jQuery table plugins, meaning that it's not only super useful to have around, but you can also use it to accomplish a lot of data table functions (sorting, filtering, etc) as well.



Another plugin for table sorting, this one is really lightweight and has many useful features, like being compatible across many browsers. 



Tabulator generates complex and interactive tables using jQuery. If you're looking for a plugin that can transform a generic HTML table that holds a lot of data, this one is a great option.









5 jQuery Auto Complete Plugins

$
0
0
Auto Complete is a really useful functionality that most of us have probably used many times before. The way it works is that when you start typing into an input field (a search field, for example), it offers you suggestions to complete your search query -- either words or phrases that might complete what you initially started typing. This functionality is super useful if you're on a device where typing can be a pain (a mobile device, for example). With auto complete options, the pain of typing out a long word or search query can be significantly lessened. If you want to add the professional touch of having a functionality like auto complete to your projects, check out any of these free and lightweight plugins that will make it happen.



autoComplete is a super lightweight plugin that you can use to add a "completion suggester" to your projects using jQuery. Not only is it really lightweight, but it's also incredibly simple to download and install on any project.



The EasyAutocomplete is another auto complete plugin that offers you a great deal of options in terms of styling and themes for your input field. Color, submit buttons, and shape of the input fields are all fully customizable, but if you're not a designer or don't have an eye for styling, you can choose from one of the pre-installed themes. 


This is an auto complete plugin that was coded specifically for addresses by connecting suggestions to Google Maps auto complete service. The coolest feature of this plugin is that it can be linked to a Google Map display where the user can actually see the address they're trying to pull up on the map, so in terms of locating addresses, it can actually be used quite similarly to Google Maps. A really cool tool to have in your arsenal. 



This plugin allows you to easily add an auto complete functionality to your sites. The plugin is lightweight and the design is sleek and modern. With lots of options for customization in terms of both auto complete function and styling, this is a great, versatile plugin that should work with most projects and integrate easily with your sites. 



flexselect is a unique plugin that adds auto complete functionality to select menus. It takes traditional select menus (you know, the ones with the dropdown option that you have to select from), and turns them into something much more dynamic, by instead providing an input field with all of the options that can be chosen appearing below the input when it's selected/focused on. 





20 Newest jQuery Chart Plugins

$
0
0
Charts are the ideal way to represent text data in a graphical form with regards to UI, and it also enables you to present complex data in a simple way. With many free and ready to use jQuery plugins available for creating charts with ease, it’s really not so hard! In this post you’ll find a list of the newest jQuery chart plugins that allow you to present organizational charts, family trees, skill sets, data in form of a donut or pie chart, flow charts, bar charts or line charts, temperature display, seating layout display and many other forms of information presenting. These plugins are very easy to integrate and offer ample customization.
1. OrgChart



OrgChart is a simple, direct and customizable organizational chart plugin for showing the structure of any organization. It allows you to display the relationships and relative ranks of various positions/jobs in a stylish way. It supports both local data and remote data in JSON format. It also supports pan and zoom, allows user to change the structure via simple drag/drop nodes, and has touch enabled plugin for mobile devices.




jOrgChart is a plugin that allows you to render structures with nested elements in an easy-to-read tree structure. To build the tree all you need is to make a single line call to the plugin and supply the HTML element Id for a nested unordered list element that is representative of the data you'd like to display. If drag-and-drop is enabled you'll be able to reorder the tree which will also change the underlying list structure.




Flowchart.js is an open source JavaScript jQuery UI plugin that allows you to draw and edit flow charts and make connections between them. Some features allow you to add advanced functionalities, such as pan or zoom view, or adding operators using drag and drop. The created flowchart can be saved and loaded again in a web page. It also allows you to customize the operators and links using CSS.




Simple Donut is a jQuery plugin written in HTML, Sass and jQuery. This plugin is used for creating a donut or pie chart to represent text data in the form of a chart on the web page. Converting an existing donut chart into a pie chart can be easily done by changing a flag in the jQuery code




Stiff Chart is a jQuery plugin which allows you to generate an animated chart to represent the relationship between HTML DOM elements. It is ideal for organizational charts, family tree diagrams and a variety of other similar charts. It also supports various options to customize the charts by changing the colour, width, layout type, etc.




jQuery Seat Charts (JSC) is a full-blown seat map library. It will generate an accessible map, legend, handle mouse & keyboard events and finally give you powerful selectors to control your map. Building your map is fairly easy with jQuery Seat charts, you can literally pass an array of strings which represents succeeding rows.




This is a mini jQuery Chart plugin that replaces HTML Tables with a donut chart representation of the data in the table. It also has support for labels and legends on the chart.




BarChart is a responsive, adaptive and highly customizable jQuery plugin that provides interactive bar chart presentation for specified user data. It supports vertical and horizontal positioning, toggling bar's sections in real-time and works on mobile platforms as well as on desktop.




Skills bar is a free, simple, lightweight and configurable jQuery plugin that creates animated horizontal bar indicators to showcase skill sets in percentage. The plugin makes use of jQuery's animate() method to animate the skill bars while loading.




Circliful is a fully responsive jQuery chart plugin that animates the presentation of information in a circular design. It doesn't make use of any images as it is based on SVG and jQuery. It can be used to show circular timer, progress indicator, donut or pie charts and for any information to show in circular form.




CircleChart is a nice and easy to use jQuery plugin for drawing circular charts. It helps to draw animated, customizable, circle style charts. It comes with tons of options for creating various charts.




TempGauge is a mini jQuery Temperature styled Gauge plugin that replaces temperature values with a temperature Gauge. It allows you to add temperature labels, set min and max temperatures and change the gauge fill colour.




Barfiller is a simple jQuery plugin that gives you percentage-based animated bar filling. It will auto re-animate on window resize to fit any screen sizes. It also allows you to use different colours and set different durations for animation for each bar.

14. Growraf



Growraf (pronounced grow-rough) is a plugin for flot charts, which produces smooth animations using requestAnimationFrame wherever possible. Growraf checks if the current browser supports requestAnimationFrame (prefixed or not) and (if there is no support) falls back to setTimeout, which ensures that it does work on old browsers also.




Water Bubble Chart is a jQuery plugin to render your data into a water bubble chart (or liquid bubble chart). For instance, it could be used on your resume to describe the extent to which you mastered some skills, or to serve as a progress bar for completing a specific task.




KlondikeChart is a jQuery library for creating responsive, customizable, html5 canvas based line and/or donut charts. It is dependent on the jQuery jCanvas plugin that makes the HTML5 canvas easy to work with.




Sweet Donut is a jQuery plugin for making sweet donut charts on HTML5 Canvas elements for an array of numeric values.




cssCharts.js is a simple, lightweight jQuery chart plugin to create a simple donut, pie, bar or line chart with DOM nodes. The advantage of this plugin is that you can easily style the chart with CSS. You can also easily convert the donut chart into a pie chart just by adding a CSS class named "pie-chart".




Graphart is HTML5/JavaScript charting library based on the Canvas that allows you to create rich charts that are completely responsive and work in all browsers. Nowadays, data visualization and analysis is a key factor of business processes. That makes it all the more important to choose the right kind of JavaScript Charting library to best matches your needs. It supports charts of various types including line charts, pie charts, spider charts or circle charts.




Simple Skillbar is a jQuery plugin for displaying animated skill bar set. It makes use of HTML and HTML 5 data attributes to define width, height, colour and background. If not specified, then it uses the default values. The options for width, height and colour can be specified in the HTML tag or it can also be set via jQuery.

To conclude, these jQuery chart plugins can help to represent text data in various chart formats with lots of fun and unique customization. Most of these plugins are easy to integrate and all they require is downloading their library and including its reference. These plugins can be used to present an organizational chart with a hierarchy, showcase skill sets, create bar charts, create flow charts, bar charts or line charts and showing temperature values.

Top 8 jQuery Plugins for Ecommerce Sites

$
0
0
If your site is in the ecommerce sphere, then chances are that there are a lot of plugins that might be of interest to you. Not only would plugins be able to add functionality to your sites, but they'd do so easily and cheaply (and often for free!). if you're looking to add more functionality or features to your ecommerce site, take a look at the list of the top 8 ecommerce-related plugins below to see if any of them are right for your projects.

1. Product Colorizer


If you're offering a product that comes in many different colors, this plugin is perfect for you. Not only does it give your users the chance to see your product in all of its available colors, but it also lets you totally customize the options so that the user can mix and match with color combos (for example, in the case of the screenshot above, the user can customize both the color of the shirt AND the color of the text using the functionality that this plugin provides).



Cloud Zoom is a beautiful plugin that will allow your users to really zoom in on all of your product images. The zoom is effect is super smooth and very well executed. The plugin isn't free, but it's a great functionality to have on your site, and depending on the types of products you're selling, it's totally worth the investment.

3. Reel


Reel is a panorama plugin that supports stitched panoramas and can be used to show your customers interactive 360 degree representations of your products. Check out the demo to see how you can use the cursor to spin your products all the way around so that they can be viewed from every angle. 




This plugin creates an expanding, dynamic shopping cart effect. It shows your cart (or your basket, whatever you choose to call it) by having it expand onto your current page, so your user doesn't need to stop browsing in order to view the contents of their carts. The plugin isn't particularly stylish, but it's completely customizable and a great functionality to add to your sites.

5. jQuery Shop Locator


jQuery Shop Locator is a great way to allow your customers to find your shop locations on a map. It comes loaded with 9 design styles and allows you to include an unlimited number of maps on one single page. It costs $10, but that's well worth the investment for this type of advanced, specific map functionality.

6. Tipsy


If you want to add tooltip functionality to your ecommerce site, Tipsy is definitely the way to go. With plenty of options for customizations, this plugin gives you ample opportunities to include clean and smooth tooltips on your site.



A great way to display content on your site is by using a carousel plugin. This one in particular includes smooth transitions and beautifully styled (though totally customizable) pieces of content that rotate like a carousel of images on your site.



Simple Cart is a beautiful, user-friendly plugin that allows you to add a simple shopping cart to your sites. It's built using HTML and JavaScript and has lots of easy options for payment gateways. 





jQuery: Multiple methods of converting table data to CSV data

$
0
0
The HTML table is the preferred DOM element for displaying data in tabular format because it provides a simple yet attractive look and feel that catches user attention. HTML tables are handy tools that respond easily to various events, such as row click. Sometimes, as part of a project the end user may want to download the data presented in the table for later reference. In this post, we’ll look at how to convert HTML table data into CSV format, allowing the user to easily download the content.
There are jQuery plugins available which can do the job but first we will look at how to do it with jQuery code. A simple rule of thumb is that if something can be achieved with jQuery code, then you should always employ that method rather than using a jQuery plugin.

HTML

Within the table elements there is a hyperlink to “Download CSV” which will convert the HTML table data to CSV and then prompt you to save the CSV file as well:
<a href="" download="Data.csv" id="btnDownload">Download CSV</a>
Here the‘download’ attribute specifies that the target will be downloaded when you click on the hyperlink. This attribute is only used if the href attribute is set. The value of the attribute will be the name of the downloaded file.

jQuery Code

The jQuery code will have a click event attached to the btnDownload hyperlink defined in HTML. Within the click event:
  • Define global array variable: arrCSVData. This variable will be used to store data after each HTML table row iteration
  • Loop through all the rows of the table element
  • This process will also check for header row. Column names in header rows are then pushed into the arrCSVData variable
  • Next, loop through all td elements inside header rows and push them into an array arrData.
  • Once inside looping is finished, use the Array.join() method to form a comma separated string  
  • After the table row loop is complete, arrCSVData variable holds all the table data. Now, again using the Array.join() method, we will convert it into a string (this time using new line character).
  • Now we have a valid CSV formatted string in csvData variable.
  • Finally, create the URL that will be set to the href attribute. Set the data to application/csv so that the browser comes to know what is going to be downloaded. Encode the final CSV data before appending it in the URL using encodeURIComponent.
Here is the complete jQuery code:
$(document).ready(function() {
   $('#btnDownload').click(function(e)
   {
     var arrCSVData = [];
     var sVal = '';
     $("#tblData").find("tr").each(function () 
     {
       if ($(this).find("th").length) 
       {
         var arrData = [];
         $(this).find("th").each(function () {
           sVal = $(this).text().replace(/"/g, '""');
           arrData.push('"' + sVal + '"');
         });
       arrCSVData.push(arrData.join(','));
      }
      else 
      {
        var arrData = [];
        $(this).find("td").each(function () {
         sVal = $(this).text().replace(/"/g, '""');
         arrData.push('"' + sVal + '"');
       });
       arrCSVData.push(arrData.join(','));
      }
   });
      var csvData = arrCSVData.join('\n');
var downloadURL= 'data:application/csv;charset=UTF-8,' +  
encodeURIComponent(csvData);
      $(this).attr("href", downloadURL);
   });
});
Simple and easy.  If you don’t wish to include a header row, then remove the following portion from the above jQuery code:
if ($(this).find("th").length) 
{
var arrData = [];
      $(this).find("th").each(function () {
      sVal = $(this).text().replace(/"/g, '""');
           arrData.push('"' + sVal + '"');
});
arrCSVData.push(arrData.join(','));
}
If you would prefer not to work in the code, there are also a couple of jQuery plugins available which can do the job. These plugins also provide more flexibility and control over the CSV generation and downloading, which can be beneficial:
  1. tabletoCSV
  2. TableCSVExport
  3. table2CSV 
These jQuery plugins are easy to use. Visit their website for more information including how to use and integrate them in jQuery.

Conclusion


To sum it up, the functionality to convert table data to CSV can be achieved with simple jQuery code. However, if you want some more flexibility and don’t wish to write your own implementation, then the jQuery plugins listed above can also be employed. 

8 Free jQuery Responsive Menu Plugins

$
0
0
Coding your own custom responsive menu can definitely be more trouble than it's worth. If you're looking for an easy way to implement responsive menus on your site, using a jQuery plugin to do so is probably the way to go. What follows is a list of some of the best free jQuery responsive menu plugins around. 

1. sidr


Sidr is a free jQuery plugin that creates responsive side menus for your sites. You can add the side menu to both sides of your pages (left and right), and when your page is viewed on a mobile device they'll slide out from the side smoothly using CSS transitions.



Scrollnav is a lightweight jQuery plugin that breaks up the existing content on your page into easily navigable sections, and presents the navigation options in a fully responsive and customizable navigation menu.



Flaunt.js is a plugin that can be used to create hamburger-style responsive menus that have support for dropdown menus so that the menu works just as smoothly on mobile as it does on desktop.



Scotch Panels is another plugin that creates sliding side menus. This plugin is super customizable and gives you lots of options for positioning and sizing of the menus, as well as options for customizing the smooth CSS transitions.



Smart levels creates a responsive menu with mutli-level support for dropdowns. The plugin offers plenty of options in terms of customization. 



If you're working with a one page site, slinky.js is a very unique and cool way of implementing a responsive menu. It creates stackable headers that becomes fixed to the top of the screen as you scroll past them. These headers become the navigation for the page. A different and flexible way of handing responsive navigation. 



This plugin transforms your entire page to reveal a menu "behind" it. This reveal can happen as a result of a trigger event. Another unique way to handle implementing a responsive navigation to your pages. The plugin comes with lots of options for customization.


This navigation plugin manipulates the spacing of your navigation items so that they always take up the full width of the container. The plugin isn't responsive out of the box, but it comes with a customization option to make it responsive with the addition of one line of code.








7 Lightweight jQuery Plugins for File Uploads

$
0
0
Creating your own file uploading functionality on your website is more trouble than its worth in most scenarios.  With dozens of different free, lightweight, and customizable jQuery plugins available to add that functionality to your site, there's even less reason to try and do it for yourself. Take a look at the list below of some of the best jQuery file upload plugins around and see if any of them are right for your project.

1. Uppy

Uppy is a lightweight, sleek file uploader that has a beautiful user interface and a very nice and modern design.



Dropzone is a file upload plugin that comes with drag and drop functionality. Your users simply have to drop the images or files into the designated drop zone and they'll be good to go. The plugin also has support for image previews.



This file upload plugin supports multiple file selection and drag and drop functionality. It also includes a progress bar so your users will know roughly how much time is left in their upload.


Fine Uploader is a feature-rich file uploading plugin that gives your users the ability to upload all your files easily. It has a drag and drop feature, a retry option for when a file fails to upload the first time around, a progress bar, and more.



This plugin provides you with simple code that will allow your users to upload an image and preview the image before upload.


This simple file uploader comes with drag and drop functionality and with progress bar support, as well as the option to cancel any upload before it completes.


jQuery File Upload plugin has drag and drop support, allows for multiple or single file uploads, has a progress bar feature, and shows image previews.







15 Awesome jQuery Animation Plugins

$
0
0

There’s no doubt about it, animation is pleasing to the eye. When a computer user thinks about Animation, "Flash" is often the first program that comes to mind. However, computer savvy folks know that Flash is already the history of animation, today there are newer more powerful tools and technologies for generating animations. jQuery has several plugins for creating various types of animation with ease. This post lists 15 awesome jQuery animation plugins for animating various DOM objects, images, page titles and text. Some plugins also allows you to generate animations like star effects, fireworks, explosions, cross fading, gradients and various text effects. Enjoy!

RollingBorder is a jQuery and CSS3 based plugin for showing focus status by adding a rolling border to the container. It also makes use of the CSS3 @keyframe rule. The @keyframes CSS rule allows you to control the intermediate steps in a CSS animation sequence by establishing keyframes along the animation sequence that must be reached by certain points during the animation.

Reanimator is a lightweight jQuery plugin that allows you to create image-based slideshow movies. These movies are intended to be embedded into larger scrolling content, and will animate as you scroll the page. This is different than a regular slideshow as the image cycling happens upon page scrolling and has no specific transitions so it's super smooth and provides swift performance. Remember, it is based on the idea of scrolling the page content to activate the animations. If the page has insufficient content for scrolling, the effect will be greatly diminished.

Bringins is a jQuery plugin that is implemented to show the contents on a webpage as an animated page. These pages will be positioned 'fixed' with scrollable data. You can have your custom CSS content appear in the bringins pages. This plugin allows you to choose from three possible intro animations: animate on the left, right or center of the webpage. The plugin also provides options to specify the color of the page, width, z-index, margin and color of the close button for the page.

Textflow is a simple jQuery plugin for showing animated texts. You can pass the texts as a simple comma separated string or in an array of texts through the settings in code. Alternatively, you can also pass a comma separated string in the data-texts option. This will override the settings defined in the code.
5. jStars

jStars is a simple and lightweight jQuery plugin that implements effects to show shine stars on mouse hover over some page elements. The plugin creates the stars effect on mouse move for elements from jQuery selector. The plugin has different styles of stars (in different colours) so you can choose what style suits your site’s background colour best. It is compatible with all of the latest browsers, including: Firefox, Google Chrome, Safari, and Internet Explorer 9+.

animateClick is a jQuery plugin that allows you to produce animations triggered by mouse clicks. animateClick comes with 5 animations for enhancing your button clicks or clicks on any element in your webpage. The plugin allows you to define the colour and size of the animations as well.

Fireworks is a simple and configurable jQuery plugin used to create dazzling fireworks animations with explosions. You can also add sound effects to the fireworks if it suits your webpage.

Magic Display is a jQuery plugin that makes the content of your website appear only upon scrolling of the page. Using Magic display is very simple, you only need to initialise the plugin and then add class ‘.magic-display’ to each element you want to animate. It also supports setting the duration of the animation. The default is 1 second.

Granim.js a small and lightweight jQuery plugin used to create fluid and interactive gradient animations. It supports basic gradient animations, radial gradient animations, gradients with an image and gradients with an image mask.
spriteAnimator is a simple jQuery sprite animation plugin which allows you to create an image sequence animation using background sprites. Define an html-tag on the page and give it a sprite-sheet as the background-image. Then attach the spriteAnimator plugin on the jQuery wrapper, providing some information about the sprite-sheet and where it should appear on the page. Finally, call .play() on it with some optional parameters.

Page Crossfade is a jQuery/CSS3 plugin that creates a crossfade effect when navigating between pages. Content fades in with CSS3 animation, and fades out with jQuery. Your page will still work with JavaScript disabled. The CSS for this plugin is not supported by Internet Explorer 9 or any previous programs. My suggestion is to only serve this CSS to modern browsers, with Modernizr or another solution. You can control the duration and easing of the animation in the file pagecrossfade.css.

Typewriter is a lightweight jQuery plugin that types text, erases, and emulates terminal typing style. It works on an array of texts, with prefix and blinking cursor support. It is an ideal choice for displaying rotating text on a website.
13. Boomjs
Boomjs is a lightweight, configurable jQuery plugin which can add an explosion animation to the DOM object. It simply breaks the object into smaller pieces which creates an explosion animation.

AnimateCSS.js is a compact jQuery plugin which makes it easier to use the Animate.css plugin with jQuery. Using this plugin, one can apply any animate.css effect, add custom duration, or add an optional delay before animation. It also provides a callback when the animation is completed.

mFancyTitle is a jQuery plugin that allows you to animate your document <title> & favicon easily with style. This is quite useful when your document title is too long and doesn’t fit in the browser title display space. It also allows you to add a title that is only displayed when the user leaves the page and opens another tab in the browser. Similarly, the favicon icon can also be changed when a user leaves the site.

Conclusion

To conclude, these jQuery animation plugins can help to animate specific DOM objects, letters and images. These plugins can also generate effects like fireworks, explosion, stars and animate the container’s border. These plugins are easy to integrate, they only require you to download their library, include attribution, and make a call to the library from your code. These plugins are all pretty lightweight and offer great customization to modify the default implementation.













10 Free and Lightweight jQuery Pop-Up Plugins

$
0
0
Pop-up modals are a great way to increase engagement on your sites. You an use them as exit pop-ups to collect emails, you can use them to display content or forms, and you can use them to showcase images and videos. Whatever the reason you want to add pop-ups to your sites and projects, using a plugin to achieve this functionality is a good way to go. What follows is a list of lightweight, free, and easy to use jQuery pop-up plugins that would be great additions to any projects.

1. animatedModal.js


animatedModal.js is a plugin that creates beautiful, responsive modals that come with a stylesheet for adding animations. You can use the animations and transitions provided for you with the modal, or you can feel free to write your own. 



leanModal.js is the perfect plugin for displaying plain page content via a modal. The plugin is simple, lightweight, and comes with two different display options (with or without a close button). You can close out of the modal by clicking anywhere outside of the pop-up.



Colorbox is a very popular plugin that can be used to display images in a stylish way. The plugin comes with a lightbox feature, so not only does the image pop-up when it's triggered, but the lightbox covers the rest of the screen with a semi-transparent layer, so the image is truly on display.



Remodal is a responsive, lightweight modal plugin that comes loaded with CSS transitions and is fully customizable. 



Ouibounce is a lightweight, simple plugin that offers lots of different customizable features for you to use to build your ideal modal. Perfect for if you want to implement exit pop-ups. 



jQuery Popdown Plugin is a simple plugin that you can use to create pop-ups that appear to slide down from the top of the viewport. Perfect for displaying images and videos. 



Magnific Popup is a popup plugin that is responsive and comes with a smooth lightbox feature. Great for displaying images and content. 


This jQuery plugin is the perfect way to use pop-up modals as log-in forms because you can use it to block pages until the form within the modal is completed. It comes with lots of features and functionalities that you can customize.

9. Vex

Vex is a unique modal plugin that gives you complete control over the styling, features, and behavior of your pop-up windows. 



This jQuery pop-up plugin is simple, lightweight, and comes with a lightbox feature. Can be used to display content, photos, or any embedded content. 












10 Awesome jQuery Parallax Plugins

$
0
0

The parallax scrolling effect allows you to move the background content (i.e. an image) at a different speed than the foreground content while scrolling. It is very trendy these days to use parallax effect. In this post, we’ve compiled a list of 10 awesome jQuery parallax plugins, allowing you to easily implement parallax effects on images or text. These easy to use and lightweight plugins support horizontal and vertical movement for parallax scrolling. Enjoy!

Parallaxify is a jQuery plugin that adds parallax effects to elements and backgrounds triggered by gyroscope sensor data (device orientation) or mouse movement. Parallaxify exposes a variety of options that let you influence how element positioning is achieved, configure filtering of sensor data, configure the movement algorithm, and change general plugin settings. In order to add a parallax effect to any element you can run .parallaxify() on the wrapper of an element or run it globally on 'window'.


Fallings is a lightweight jQuery parallax effect plugin that focuses on manipulating absolute elements positions based on the window.scrollTop() property. The parallax effect can be checked while scrolling up/down in the browser window.


Paroller.js is an easy to use, mobile ready, lightweight jQuery plugin that enables parallax scrolling effects. You can use it on background elements or on any other element. Scrolling elements can move vertically or horizontally.

Parally is a small, simple, flexible jQuery parallax scrolling plugin which can be applied to background images or any other DOM elements. You can also pass multiple configuration parameters to controls the parallax effect.

Parallax.js is a jQuery parallax plugin that helps you create Spotify-like parallax scrolling effect on your web page. Parallax.js will create a fixed-position element for each parallax image at the start of the document's body. This mirror element will sit behind the other elements and match the position and dimensions of its target object.

Parallax ImageScroll is a simple and easy jQuery plugin for creating image parallax effects while scrolling the page, inspired by spotify.com. The plugin is really simple to use with several options for tweaking. It makes use of css3 transform for animation where supported and falls back to top and left positioning for ancient browsers.

jInvertScroll is a lightweight plugin for jQuery that allows you to move horizontally with a parallax effect while scrolling down. It's easy to set up and requires nearly no configuration.

TVParallax is a tiny jQuery plugin utilizing CSS3 3D transforms to implement an Apple tvOS style parallax effect on a given element that interacts with mouse movement.

Parallaxator is a jQuery-based parallax plugin. It's simple, and amazingly easy to use. It allows you to implement parallax effects with any html elements including text and images.

Paralaxbg.js is a jQuery script for creating background parallax effects which make background images move slower than foreground content while scrolling up or down.

Conclusion


To conclude, these jQuery parallax plugins can be used to apply the parallax scrolling effect on any HTML element like text or images and also supports horizontal and vertical scrolling. These plugins are easy to integrate and only require that you download their library, include attribution, and make a call to the library from your code. These plugins are pretty lightweight and offer great customization to modify the default implementation.











7 Cool jQuery Plugins for Transitions

$
0
0
Including smoothed, polished transitions is a fabulous way to make your projects look sleek and professional. Animated transitions are the perfect finishing touch to add to a website, but writing the code for these transitions from scratch (whether you're using CSS or jQuery to execute them), can sometimes be much more of a pain than it's worth. If you want to add transitions to you projects without putting in the extra time to write the code yourself, check out this list of some of the coolest free jQuery plugins to achieve transition effects.

1. Transit

Transit is a fantastic free plugin that will provide you with the smoothest transitions using jQuery. The plugin is easy to use and will animate any element in both 2D and 3D transformations.

2. Multi-screen.js


Multi-screen.js will provide you with animated transitions to switch between "pages." Basically, it's a unique way to create a single-page site that has the illusion of having multiple pages because the user is able to flip through the content smoothly and easily with the help of Multi-screen.js.



Fluidbox is an image-enlarging plugin that allows your user to click on an image to enlarge it, and when the image enlarges, it does so using a nice transition effect. Perfect if your project has a lot of plugins that you want your users to be able to enlarge without it feeling clunky. The plugin also supports responsive designs.



Blindify is another transition plugin that can be applied to images. The aim of the plugin is to allow you to create image slideshows where the transitions are a vertical or horizontal "blind-effect" -- so it sort of resembles animated window blinds.



An interesting take on the menu concept, this plugin helps you build a square (or rectangular) menu that opens at a single click, and when it opens it does so using a beautiful, customizable transition.

6. Dialog

A cool way to use transition effects it to apply them to pop ups or dialog boxes, which is exactly what the Dialog plugin does. With Dialog, you can apply smooth transition effects to any pop-up, so that the pop-up effect is sleeker and less jarring for the user. This plugin is ultra lightweight.

7. Wiper


Wiper is another plugin to use when creating image slideshows. This slideshow plugin not only offers cool, wiping transition effects for your slideshow, but it also provides a very unique slider navigation (see in the screenshot above all the bars in the top left corner that say "sample" -- clicking one of these will reveal a previously viewed slide). 






6 jQuery Plugins for Image Cropping

$
0
0
Adding a cropping functionality to your site is definitely a cool feature to include on any project, and a great way to give your users access to a really useful functionality If you're not sure how to go about creating an image cropper from scratch, don't worry, you're not alone. With so many open source image cropping jQuery plugins available, there's really no need for you to code one yourself anyway. Take a look at the following list of some of the best, most lightweight, and most efficient image cropping plugins around.

1. cropit


Cropit is a great plugin for image cropping that loads images locally using a file reader (you can drag and drop the images you want to upload), then crops them using HTML5 canvas. It's extremely customizable with CSS and is responsive, so it works on both desktop and mobile devices (it has touch support for mobile).

2. DarkroomJS


DarkroomJS isn't exclusively an image cropper -- it's an image editor, that includes a cropping functionality. If you want to give your uses the option to rotate their images, or adjust the brightness of their images, in addition to giving them a cropping feature, this plugin is a great option. Powered by HTML5 canvas.



This is a powerful plugin that offers you tons of customization options in terms of user experience and how you can allow your user to upload their image, crop their image, view their cropped image, etc. A very versatile cropping plugin, this one's an awesome option for those looking to give their users a unique and smooth crop experience.


Picture cut is a cropping plugin that's supported on all major browsers. It's a simple, no-fuss process with a minimalist design (though the style is totally customizable, of course). Great for if you're looking for an uncomplicated cropping functionality (with a drag and drop feature!).

5. Jcrop

The coolest thing about Jcrop is that it has a "preview pane" (see the box to the right of the image in the screenshot above) that gives the user a preview of what their image is going to look like once its cropped. Aside from the preview pane, the plugin is lightweight, easy to install, and even easier to use.



Cropper is a cropping plugin that gives the user lots of options for formatting their uploaded photo. You can zoom in and out of the photo, move it around the canvas (up and down or side to side), rotate the image, and change the scale. It's a great tool for users who really want to play around and experiment with dimensions and aspect ratios of their images in addition to cropping them. 




8 jQuery Plugins for Rich Text Editors

$
0
0
With rich text editors (also referred to as What You See is What You Get editors -- which is often abbreviated to WYSIWYG) make it easy for anyone to add styled, formatted text to the interwebs without having to have any code or CSS knowledge. They're the kind of editor that most people would probably use when writing up a page or a post on a CMS platform like WordPress or Blogger. If you want to add one to any of your websites or projects to give anyone the chance to be able to post polished looking content, check out our curated list of the best jQuery plugins that allow you to include a WYSIWYG editor just about anywhere.

1. Summernote


Summernote is a really beautiful text editor on Bootstrap. It's simple, mobile friendly, and it comes with two different pre-styled themes (dark or light). It's easy to install and customize and it's totally open source.



Matheditor.js is a unique rich text editor that works like all of the other WYSIWYG editors on this list, only instead of using it to generate formatted text, you use it to generate formatted math equations. It uses the MathQuill library, is super lightweight, and is optimized for mobile use.  

3. Froala


Froala is a lightweight WYSIWYG editor that is incredibly easy to use, supports dozens of different languages, is mobile friendly, and supports common keyboard shortcuts.



Redactor is a simple rich text editor with a clean, minimalist design. One of its coolest feature is a drag and drop capability for images. 

5. Cazary


Cazary is another simple WYSIWYG editor that can be used in a few different modes. Full mode includes tons of customization and formatting options for the text within the editor, while minimal mode only offers a few common ways to format text, such as the option to make the text bold, italic, or underlined.



ContentTools is a really cool editor that allows for inline editing, which means you can set certain parts of your pages to be editable areas, and users can edit them on the spot. It's easy to integrate with any site.



This rich text editor has a clean and simple design, but what makes it unique is that it provides users with an instant preview of the text they're creating and formatting. It's also super lightweight and easy to use.



TinyMCE is a plugin that provides you with a feature rich WYSIWYG editor that includes features such as file management, spell check, media embedding, and image editing. This powerful editor would be a great addition to any site. 







7 Lightweight jQuery Plugins for Styling Login and Registration Forms

$
0
0
Adding a login and registration functionality to your website is a great thing to be able to do. Not only is it a cool feature, but it also opens up a lot more possibilities for your site in terms of functionalities, and it can also really help improve user experience. If you're trying to add this functionality to your site but aren't sure what to do with it in terms of design, check out the following list of snippets, plugins, and tutorials that show you how you can add some flair to your login and registration forms with the help of both CSS and jQuery.

1. Calm Breeze Login Screen


This code snippet from CodePen creates a beautiful, sleek, minimalist and modern login functionality. While the snippet doesn't include an option for registration, that can easily be added by going off the design and theme that the snippet provides.



This particular tutorial provides you with snippets that show you how to make stylish and sleek responsive modals for both login and registration. 



This jQuery plugin creates an iPhone-inspired masked-password input with the option to reveal the password to the user, similar to the option you'd have on the iPhone. 



This code snippet creates an elegant login form with tooltip, focus, hover and animation effects, partly made possibly through the use of jQuery.



This tutorial demonstrates how to make a User Login modal using jQuery to create the titular "modal" pop-up window effect.



A darker take on the login form, the theme of this snippet is very minimalist and can be used to create a somber yet stylish login form that can be easily added or integrated to any project or site.



This bright and fun login box concept is presents you with a cool code snippet complete with hover effects, focus effects, and a brightly colored gradient background. Use it as is or customize it so that the colors match your project.









8 jQuery Plugins for Audio Players

$
0
0
If you want to add an audio player to your website or project, building one out by yourself isn't exactly your best option. Doing so would be extremely time consuming and probably not worth the effort, considering all of the free plugins available that allow you to add audio players to your project in a snap. If you're looking for a quick and easy way to get an audio player set up on your website, check out the following list of free jQuery plugins that you can use to allow your users to play music, podcasts, recordings, or any other type of audio easily on your websites.

1. HTML5 Music Player


This jQuery plugin will add an HTML5 music player to any of your sites. It's lightweight and easy to install.



Use this jQuery plugin to play audio anywhere on your websites. The HTML5 player uses Flash as a fallback and is compatible with recent versions of just about any browser.


If your site has a lot of mobile traffic, this is a great audio player for you. Not only are the audio players responsive, but they're also touch-friendly. The player is simple, minimalist, and the plugin is super lightweight.



jWebAusio is a jQuery audio player and sound library. The library is designed to add sounds to games, so if you're looking for an audio player that will not only add sounds to your games, but give you plenty of different sound effects to choose from, this is a great option.


jplayer is a free, open source media library written in JavaScript that allows you to play audio and video on your webpages. It's used by big name brands like Pandora and BBC, so they must be doing something right.


Wavesurfer is a jQuery plugin that creates an interactive navigable audio visualization using JavaScript and HTML5 canvas. Definitely a cool feature to add to any modern website or project.



This jQuery plugin can be used to add both audio and video players to your web pages. Compatible with most modern browsers and with iOS, so it can be used easily on iPhones and iPads.



This stylish audio player is a beautiful way to add an audio player to your websites and projects. Both beautiful and functional, it's also lightweight and loads asynchronously to help optimize your webpage's load time.








7 Free jQuery Plugins for Maps

$
0
0
cThe ability to add a map functionality to your site can be a big deal -- especially if the website in question represents an actual establishment that users can visit. In that case, the fact that your users would be able to see where it's located on a map not only helps to make a positive user experience, but it's also just a good way of letting your users know how to find you in real life. If you're looking to add some sort of functionality to your site that will give your users access to locating real life places of business (or even just regular places and addresses), check out the following list of jQuery plugins made for adding maps to webpages.

1. jQuery tWism


The jQuery tWism plugin can be used to create custom clickable maps. With built-in map templates that include a detailed map of the United States OR a detailed world map, you can reveal state names or country names just by clicking on them. This plugin is lightweight, easy to use, and highly customizable.



WhatsNearby uses Google Maps and Google Places API to create a plugin that renders a Google Map that shows the user an interactive map of what is nearby. You can choose what types of establishments are shown -- bars, cafes, restaurants, gyms, etc, and you can also choose a radius for the map to adhere to -- so you can show cafes within 5m of a location, or gyms within 50 meters. It's customizable to meet the needs of your own individual projects.



Geocomplete is a jQuery plugin that creates an auto-complete function for locations using Google Maps API and Google Places Autocomplete Service. All you need to do is create an input field to call the .geocomplete() function on. You've also got the option to add a container that can house an interactive map that will populate based on the location added into the aforementioned input field.



Maplace is a lightweight plugin that makes it easy to embed Google Maps onto any web page. It allows you to quickly create markers and a controls menu on the map, and can run as many maps as you like.


Geolocation marker is a useful plugin that creates a marker circle over a users location as users interact with your map. The circle creates an accurate radius around your users' locations.



jVector Map is a cool, stylish map plugin that is very versatile. It's scalable, interactive, and works across all browsers.


Another map plugin that has an autocomplete feature, this one comes with a built-in interactive map feature that makes it super easy to link up to and integrate with Google Maps.





Optimize Your jQuery Selectors for Best Performance

$
0
0
Optimize your jQuery selectors for best performance

Introduction
Over time, the data size has increased for nearly every application. Due to huge amount of data residing in various database servers, performance becomes the most important and integral part of any application. If the page takes lots of time to render the data, it creates a bad impression and results in loss of interest by the end users. There are different places where performance can be increased, including database code, server side code to process the data and client side code.
Application development has also gone through monumental change over time. The client calls REST API and the server automatically sends the data in JSON or some other format. It’s the responsibility of client side code to process and render it for display. Therefore, it’s pretty important to follow best practices for client side code in order to ensure best performance. jQuery is one of the most popular and most used client side libraries, so writing high performance jQuery code is of the utmost importance. One of the key areas of performance improvement is in the methods for selecting and manipulating HTML elements. jQuery selectors allow you to select and manipulate HTML element(s) quite easily. This post shows how to optimize your jQuery selectors for best performance. 
Let’s begin!
Before we get into optimization tips, let me first give you a quick overview of the different categories of jQuery selectors.  There is no official categorization, but they can be categorized in this way:
  • ID selector $('#elementID')
  • Tag selector $('p')
  • Class selector $('.CSSClass')
  • Attribute selector $('[type="text"]')
  • Pseudo selector $(':visible')

Always use ID selector if possible
Accessing DOM is a very expensive operation, so it’s beneficial to minimize effort and time. As we all know, the ID attribute is unique for each HTML element on the page. in JavaScript document.getElementById() is the function that one would use to select the HTML element. It’s the fastest and the best way to select the element because it directly maps to the element. jQuery is a library written on top of JavaScript, which means that it internally calls the JavaScript functions to do the job. When you use ID as a selector in jQuery, it internally calls document.getElementById(). To select the HTML element with elm as ID, the jQuery code looks like this: $("#elm");
This method works well in all browsers, so it’s a good choice if you are using an older browser.

Cache your selector
Caching improves the performance of the application. You can cache data or objects for better performance. You can also cache your jQuery selectors for better performance using the ID as your selector (as mentioned in the previous tip). When you don’t cache the selector, jQuery must rescan the DOM to get the element. You may not feel the difference in small applications, but with large applications this becomes very critical. Let’s look at the process of caching objects in jQuery. The following simple line of code caches the selector and stores it in the $elm variable: 
var $elm = $("#elm");
Now use the $elm variable instead of using the jQuery ID selector. Like this:
var $elm = $("#elm");
$elm.addClass(‘dummy’);
Remember, the scope of a variable is limited to where it is defined. If it is defined as a global variable then you can use it anywhere in the jQuery code, but if it is inside a method the scope will be limited to that particular method only. Global caching is useful for elements which are frequently used in the code.

Define a context with jQuery selectors
By default, jQuery selectors perform their search within the DOM. But while defining the selector, you can pass the context, which limits the searching range for the jQuery selector. In other words, you are instructing jQuery to look inot the context rather than beginning the search from the document root. This helps in speeding up the searching process which will definitely improve the performance. Passing the context is optional, but you should use it whenever you can. 
Enough theory! Let’s take a look at a practical example. Consider the following HTML code:
<div id=”parent1”>
<div class=”child”> </div>
<div class=”child”> </div>
<div class=”child”> </div>
</div>
If you want to select all the div element with child class you can use the following jQuery code:
var $elm = $(".child");
The above code will search for elements with child class starting from the document root. It can be optimized by passing via an alternate selector. Like,
var $parent = $("#parent1");
var $elm = $(".child", $parent);
This limits the search range, so now searching is limited to the div with ID parent1. The context argument can be a DOM element, a document, or a jQuery object. If you pass context, then jQuery will internally use the find method to retrieve the elements. So the above code is internally converted to:
var $elm = $parent.find(".child");
jQuery first checks if the passed context is a jQuery object. If it is, it calls the find() method on the given context. If the given context is a DOM element, it first converts it to a jQuery object and then executes the find() method. As such, it is better to pass the object as context instead of the DOM element because it will reduce the conversion time.

Don’t repeat your selectors
As mentioned earlier, you can cache the jQuery selectors which prevents you from repeating your selector. jQuery also offers chaining, which allows you to chain multiple methods in a single call. Consider the following jQuery code:
$("div").css("color", "red");
$("div").css("font-size", "14px");
$("div").text("New Text!");
Below is the first optimized version using caching:
var $div = $("div");
$div.css("color", "red");
$div.css("font-size", "14px");
$div.text("New text goes here!");
Next is the second optimized version using chaining:
$("div").css({"color", "red", "font-size", "14px"}).text("New text goes here!");

Use class selector wisely
jQuery also provides a CSS class selector which allows you to select elements with a particular CSS class. This is again a very useful and popular selector as it allows you to select multiple elements at once. However, you have to be cautious while using class selector. The following jQuery code will select all the elements with “dummy” class applied to them:
$(".dummy")
In this case, jQuery has to scan the complete DOM to discover elements with dummy class.  As mentioned earlier, traversing DOM is a very expensive process so it’s always better to minimize this effort. In this case, you can pass a tag name to reduce the searching scope. Like this:
$("div.dummy");
The above code tells jQuery to only give me the DIV elements with dummy CSS class applied.  Though the class selector works quite well in modern browsers, older browsers have performance issues with class selector. That being said, it’s not always a good choice to add a tag name with class selector. Why? 
In this example, jQuery will first search for all elements with class dummy and then filter records to only return those elements that are div elements. So when the dummy class is only meant for div elements, you need to specify the tag name in order to add an extra step of filtering. Keep in mind that this is only useful when the CSS class is applied to different HTML elements like span, paragraph and div.

Be very specific about selectors
Did you know that jQuery selectors are executed from right to left? In other words, the last selector will be executed first when there are multiple selectors. Consider the following example:
$("div.parent .child");
In this example, jQuery will first search for all elements with class child (last selector executed first) and then apply a filter to return only those elements which are div elements with a parent class applied. This is the optimized version:
$(".parent div.child");
Here we are more specific on the last selector, which helps to speed up performance!

Look for an alternative for the Pseudo selector
Pseudo class selectors are CSS selectors with a colon preceding them. They are also available with jQuery - :visible, :checked or :first. Pseudo selectors are useful for selecting elements with different states, or a particular element from a set of elements, but they are slower compared to other jQuery selectors.  You should either find a way to replace the pseudo selector or be very specific in using it. Let’s take a look at examples of both. The following jQuery code selects all elements which are visible:
$(":visible");
You can be more specific here. Like, 
$("input:visible");
or even better,
$("form").find("input:visible");
Pseudo selectors like:first, :last and :eq allow you to select a particular element from a set of elements. As an example, the following jQuery code will select the first table row using the :first pseudo selector.
$("tr:first")
The above code can be replaced with better performing code, but first you need to cache the selector (table row in this case).
var tRows=$('tr');
Since jQuery stores this as an array, we can take advantage of it. To get the first table row:
var firstRow=$(tRows[0]);
To get the last element (:last), 
var lastRow = $(tRows[tRows.length - 1]);
Or to get any nth row (:eq(n)),
var nRow=$(tRows[n]);

Conclusion


jQuery is an awesome library that makes developers lives simple, but when not used properly it can be the stuff of nightmares! It’s important to write highly optimized and efficient code for better performance and scalability, on any application. This post shows how to write optimized code for jQuery selectors. These optimization tips show the importance of ID based selectors, the advantages of caching the selectors, defining a context to speed up DOM traversal, being very specific about the selector and using class & pseudo selectors wisely. Make a habit of following these tips to get the best performance from your code!

3 Ways to Use jQuery to Detect AdBlock

$
0
0
Ad blocking software is becoming increasingly prevalent among internet users, for a number of reasons. The most important of which is that, often times, ads can really decrease a user's experience. They can be obnoxious, and they can be slow -- and not just slow down your webpage, but also a user's entire browser or computer. Additionally, ad blocking software is now super easy for even the least technologically savvy users to get ahold of -- the Chrome extension for AdBlock makes it particularly easy to install.

For many casual web page browsers and internet users, this ad blocking software is great news. For website owners and operators, however, it's brutal. Because many websites rely on revenue from ads to keep running, ad blocking software can severely decrease the amount of money they're able to make from their website. With jQuery, it's actually possible to detect if a user is taking advantage of ad blocker software. Once the ad blocker is detected, you can choose to ask them to whitelist your site or even take it so far as to block them from your site until they've removed their ad blocker or whitelisted you.

What follows is a list of 3 ways that you can use jQuery to detect AdBlock software.

1. Detect AdBlock


Detect AdBlock is a website that offers real, easy to implement solutions to detect AdBlock software on your websites using JavaScript. The code is provided by AdBlock Analytics, who gives you step-by-step instructions on how to effectively detect whether or not your users are blocking your ads. Once the ad blockers are detected, Detect AdBlock gives you three options for how to proceed: you can send the data to Google Analytics, you can save and post the data to an external script, and/or you can display a custom message to your user. This is a great, easy solution for detecting ad blocking software. 

2. Code Synthesis Ad Blocker Detection Plugin


Code Synthesis' solution to detecting ad blocking software uses jQuery. The method of detection is to create a "dummy" ad container that, if installed, the ad blocking software will interpret as an ad and try to suppress. If this happens, then you know that your user is utilizing ad blocking software, and this particular code snippet gives you the option of displaying a custom message to your user(s). 

3. Adi.js


Adi.js is sort of a less hands-on approach compared to the other two ad blocking solutions we've already presented. That's because Adi.js is actually a plugin that you can install onto your projects, rather than code snippets that you have to insert yourself. Once you've installed the plugin, you only need to call any of the built-in functions to detect ad blocker software and execute a reaction to the software if it's found. This plugin is lightweight, super easy to install, and even easier to use. A great option for if you're trying to quickly add an ad blocking software detection functionality to your site or projects. 

6 Lightweight jQuery Plugins for Fixed Elements

$
0
0
Giving fixed positioning to elements is a great way to keep them visible on the page no matter how much or how far a user scrolls. Fixed positioning can be achieved easily using CSS -- it only takes one line of code to change the position of an element from static or relative to fixed. But if you're looking to create dynamic fixed elements, it's a little more complex and requires a bit of jQuery or JavaScript.

Dynamic fixed elements are elements that become fixed after the user has scrolled a certain amount down the page -- usually they become fixed once the user has scrolled past them. You can write code yourself to create dynamic fixed elements, but these type of fixed elements can be created easily using jQuery plugins. Check out the following lightweight jQuery plugins to see just how quickly and easily you can start adding fixed elements to your projects.

1. Sticky Kit


Sticky Kit is a great free and lightweight plugin that allows elements to become fixed or "stuck" to the page, no matter how far a user scrolls. With the plugin, you can easily make one or several different elements sticky, so it gives you a lot of options in terms of functionality.



Here's another plugin that allows you to make one or multiple HTML elements fixed. The plugin is lightweight, free, and easy to use. Additionally, it's supported on recent versions of most popular browsers. Plus, while it makes elements fixed when vertical scroll occurs, the elements are still able to move left to right if there's a horizontal scroll.



Headroom.js is a lightweight JavaScript plugin that makes it super easy for you to change the position of elements based on a user's scroll. The plugin has no dependencies so it's super lightweight and won't significantly slow down your page's performance.



Waypoints allows you to quickly and easily trigger a function when you scroll to a particular element. When the function changes the CSS position property to fixed or changes the CSS class to one with a fixed positioning, you're good togo.



This plugin is so lightweight and easy to use, it's like magic. Use it to add really cool effects to your scroll -- including fixed positioning.

6. Sticky


This simple plugin makes it easy to add fixed positioning to any element on scroll so that any of your elements will remain visible no matter how much far you scroll up or down. 




7 jQuery Plugins for Mobile Friendly Projects

$
0
0
If you're not designing and coding every single project that you do with mobile in mind, then you're probably doing something wrong. Even if you're not coding mobile first designs, they should at the very least be mobile friendly because, you know, it's 2017 and we're living in an ever-expanding mobile world.

Every project you create should look great on a tiny screen, be touch enabled, and, of course, function across all viewport sizes. If you find yourself needing help with any of the above, check out this list of great free and lightweight jQuery plugins that will help you to easily build more engaging and enjoyable mobile experiences for your users.

1. jQuery Masonry


jQuery masonry is a plugin that will create grid layouts out of your page elements using jQuery. The plugin uses jQuery to arrange your items in a vertical grid, placing each item in the next consecutive open space. Define the width of the columns yourself, and the plugin pretty much takes care of the rest. 



For many developers, the hardest or most aggravating part of building a responsive, mobile friendly site is building a navigation that is equally as responsive and mobile friendly. Desktop users are accustomed to their navs being a long, horizontal line that links them to other sections of the site, but that type of design doesn't look great on mobile. The Responsive Nav plugin will easily solve all of your mobile navigation woes, as the plugin provides solutions not only for mobile navs, but for tablet navs as well. 



Sometimes when a webpage is viewed on a mobile device, certain elements have to get smaller to fit within the viewport. When elements get smaller, they don't always hold the same amount of content as they used to. The jQuery dot dot dot plugin is a free, lightweight way to handle this potential problem. The plugin can be used to add an ellipses (...) to any container whose content exceeds the size of the container.



Lazy Load is a plugin that can be used to improve load time of your mobile pages by only loading images that are in the viewport. This can really speed things up,  because the user won't have to wait for the images that aren't even in the viewport to load before the page loads.



Isotope is a cool, fun plugin that you can use to structure a dynamic, mobile-friendly page. This sort of dynamic structure is something that can't be achieved using CSS, and this plugin gives you a lot of options for how you'd like to display your elements in a mobile friendly way.




If you're implementing a slider functionality on a mobile project, it's a good idea to make sure that the slider is mobile-friendly and touch-enabled. The FlexSlider plugin helps you to easily create a slider that meets both of those requirements, complete with polished animations and widespread browser support.



ResponseJS is a lightweight plugin that aids in the creation of responsive sites by allowing you to easily swap blocks of code based on breakpoints, and it serves images progressively to improve page load time. 




Viewing all 122 articles
Browse latest View live


Latest Images