Wednesday, July 6, 2016

ScrollTrigger – Scroll Based Animations with Ease

Triggers classes on html elements based on the scroll position. It makes use of requestAnimationFrame so it doesn't jack the users scroll, that way the user / browser keeps their original scroll behaviour.


by via jQuery-Plugins.net RSS Feed

This Week in Mobile Web Development (#115)

Read this on the Web

Mobile Web Weekly July 6, 2016   #115
Brian Rinaldi recommends
About that 'Mobile' in Accelerated Mobile Pages — Creating a single AMP-enabled page rather than separate, and the benefits and drawbacks of this approach.
Paul Bakaus
Holly Schinsky recommends
What's a Progressive Web App, and Should I Build One? — An overview of Progressive Web Apps and what factors might help you determine if you should build one.
Joe Madden
Peter Cooper recommends
A Guide to High Performance Browser Networking — A free-to-read book on what every web developer should know about mobile networks, protocols, and APIs provided by browsers to deliver the best user experience.
Ilya Grigorik
Sponsored
Try the RASON® API – and Start Using Advanced Analytics in Your Web/Mobile Apps — Solve powerful optimization and simulation models in your app easily with the RASON® API. Use a high-level modeling language embedded in JSON, and a simple, Azure-backed REST API service.
Frontline Systems Inc

Holly Schinsky recommends
Horizon: A Scalable Backend Perfect for JavaScript Mobile Apps — Horizon is a scalable backend perfect for JavaScript and cross-platform mobile apps. In this tutorial Wern Ancheta creates a multiplayer game to show why.
@wernancheta
Peter Cooper recommends
Deep User Engagement with Web Push Notifications — Push notifications are an effective way to build deeper user engagement with your webapp, and are now available on the web.
Google Chrome Developers
Holly Schinsky recommends
The Web App 'Discovery Problem' — Remy addresses the web app discoverability problem and how curated app stores could be the answer.
Remy Sharp
Holly Schinsky recommends
The Top 10 Prototyping Tools of 2016 — Levin Mejia runs through the tools you should be experimenting with to give your prototyping the edge.
Creative Bloq
Brian Rinaldi recommends
AMP and Standards — In response to a prior comment, Paul explains what he means when he describes AMP as ‘a stop gap measure’.
Paul Bakaus
Brian Rinaldi recommends
Give Your NativeScript Mobile App an Ionic Framework Theme — How to apply a CSS theme that will make your NativeScript Android and iOS mobile app look similar to the default styling for the Ionic Framework.
Nic Raboy
Holly Schinsky recommends
Offline Syncing in Ionic 2 with PouchDB and CouchDB — How to build hybrid apps that can store data remotely and provide offline functionality via syncing.
Josh Morony
Brian Rinaldi recommends
Use Cases For CSS Vertical Media Queries — Some examples of when vertical media queries can be useful.
Ahmad Shadeed
Brian Rinaldi recommends
An Update to the AMP Roadmap to Close Out Q2 — A status report on the AMP roadmap.
Ashwin Limaye
Brian Rinaldi recommends
The Progress of Web Apps — Jacob looks at the history of the web on Windows and how progressive web apps are an extension of that history. He also looks at how PWA’s might be supported on Windows.
Jacob Rossi
Holly Schinsky recommends
Angular 2 NativeScript vs. React Native — A high level, opinionated look at the difference between two popular mobile app dev tools based on Web technologies.
Itay Herskovits
Brian Rinaldi recommends
Build A Hybrid App with The Ionic Framework — A step-by-step tutorial for beginners with Ionic 1.
Web Designer Magazine
Holly Schinsky recommends
Improving User Flow Through Page Transitions — A step-by-step look at creating a transition between pages, in addition to thoughts on the pros and cons of this technique.
Luigi De Rosa
Sponsored
Job Offers. No resume necessary. — Create your Hired profile to get top companies to start applying to hire you. Get offers from $75,000 - $250,000 on the platform in 1 week.
Hired.com

Curated by Brian Rinaldi and Holly Schinsky for Cooper Press.
Cooper Press is located at Office 30, Fairfield Enterprise Centre, Louth, LN11 0LS, UK
Update your email address
or stop receiving MWW here


by via Mobile Web Weekly

Templating With Jinja2 in Flask: Date and Time Formatting With moment.js

In the first and second parts of this three-part tutorial series, we saw how to lay out the template structure in a Flask-based application using Jinja2 in a modular manner and how to create custom context processors, filters and macros in Jinja2. 

In this part, we will cover how to implement advanced date and time formatting at template level in Jinja2 using moment.js.

Getting Started

Date and time formatting is a painful thing to handle in web applications. Handling them at the level of Python, using the datetime library, increases the overhead and is pretty complex when it comes to handling time zones correctly. We should standardize the timestamps to UTC when stored in the database, but then the timestamps need to be processed every time they need to be presented to the users worldwide.

It is a smart thing to defer this processing to the client side, that is, the browser. The browser always knows the current time zone of the user and will be able to do the date and time manipulation correctly. Also, this takes off the necessary overhead from our application servers.

Just like any JS library, Moment.js can be included in our app in the following manner. We will just have to place the JS file, moment.min.js, in the static/js folder. This can then be used in our HTML file by adding the following statement along with other JS libraries:

The basic usage of Moment.js is shown in the following code. This can be done in the browser console for JavaScript:

To use Moment.js in our application, the best way will be to write a wrapper in Python and use it via jinja2 environment variables. Refer to this runnable for more background. Add a file named momentjs.py at the same level as my_app.py.

flask_app/momentjs.py

Add the following line in flask_app/my_app.py after app initialisation. This will add the momentjs class to jinja environment variables.

Now moment.js can be used to format date and time in templates as follows:

Conclusion

In this tutorial series, we covered the basics of Jinja2 templating from the perspective of Flask. We started with very basics of Jinja2 and learnt the best practices on how to lay out the template structure and leverage inheritance patterns. 

Then we created some custom context processors, filters and macros which come very handy in advanced templating. The final tutorial covered how moment.js can be utilised along with Jinja2 to create highly flexible and powerful datetime formatting.


by Shalabh Aggarwal via Envato Tuts+ Code

26 Ways to Use Video for Your Social Media Marketing

ag-video-marketing-600

Do you want to add video to your social media marketing? Looking for ways to increase video views and engagement? In this article, you’ll discover 26 ways to use video to improve your social media marketing. #1: Experiment With Video Lengths When it comes to the ideal video duration, a lot depends on the type [...]

This post 26 Ways to Use Video for Your Social Media Marketing first appeared on .
- Your Guide to the Social Media Jungle


by Ana Gotter via

WooCommerce One Page Checkout keeps purchasing within One Page

hiro-jump-kickThis weeks RSS and site sponsor is the awesome One Page Checkout extension for WooCommerce.

For those new to WooCommerce, it is a free WordPress plugin built by WooThemes. This extremely popular plugin gives anyone the ability to sell anything online within their WordPress installation.

How popular you ask? 30% of ALL online stores are powered by WooCommerce!

We don’t feature a lot of these WooCommerces powered stores as they aren’t Single Page websites. This is all going to change with the introduction of the One Page Checkout extension.


What exactly does the One Page Checkout extension do?

Think of an extension as an “add on” to an already very functional product. The reason it’s not bundled into the main product is because it is not for everyone. So it is offered as an optional extension keeping the main code less bloated. Smart.

This One Page Checkout extension keeps the whole commerce checkout process within the same page ie. the same One Page website if your store is on your home page.

This means when a user clicks an “Add To Cart” button, the items are added to the shopping cart without the page reloading. The user can continue to checkout and pay right there without any further waiting for pages to load or further distractions.

1 in 10 people who abandon their cart do so because the checkout process is too long. Reduce cart abandonment by offering the entire purchase process on a single page, with WooCommerce One Page Checkout.

Their promo video explains it quite well and includes a quick demo on implementation:


One Page Checkout Features

Product Selection + Checkout

One Page Checkout displays product selection and checkout forms on a single page. Customers can add products to an order (or remove them) and complete payment without leaving the page:

add-to-cart

Curated Products

You choose the products to display on each checkout page. Create a page for just the one featured product, a few related products for a promotion, or your store’s entire catalog:

one-page-checkout-product-selection-cropped@2x

Custom Landing Pages

You can also create multiple unique landing pages for special events, promotions or select customers. Add the shortcode to any page (or post) and add your content above the shortcode to display unique sales copy before the purchase process:

one-page-checkout-custom-landing-page-cropped@2x

Built-in & Custom Templates

One Page Checkout includes several built-in templates, including a simple pricing table and list of products. Choose the template most suited to your page or if the built-in templates don’t fit your needs, create a custom template:

one-page-checkout-templates-cropped@2x


One Page Checkout Implementation

Probably best you see how extensive the documentation is. I’ve given it a spin myself and it’s super easy to implement. Basically all that is involved is dropping a simple shortcode anywhere in your One Pager that requires the commerce section:

one-page-checkout-shortcode


How much does the One Page Checkout extension cost?

WooCommerce is totally free but this One Page Checkout premium extension is $79 and well worth the money. Your purchasing includes one year of quality email support and plugin updates.


I’d love to see what you’re building with this extension so please email or tweet me your links. We might put together a roundup of sites to showcase more on the product:)


by Rob Hope via One Page Love

Bangui l'oubliée

Discover the activities of the NGO Action Against Hunger in Central African Republic, through a VR experience.
by via Awwwards - Sites of the day

Checkbox X : jQuery extended Checkbox Plugin for Bootstrap

An extended checkbox plugin for Bootstrap built using JQuery, which allows three checkbox states and includes additional styles. The plugin uses Bootstrap markup and CSS 3 styling by default, but it can be overridden with any other CSS markup. It also helps you to fallback to a native checkbox OR display native checkboxes with tristate capability.

The post Checkbox X : jQuery extended Checkbox Plugin for Bootstrap appeared first on jQuery Rain.


by Admin via jQuery Rain