background preloader

Vanilla JS

Related:  FRAMEWORKS & LIBRARIES JavaScriptSaved Tech

SPIF - Streaming Progressive Image Format MultiRes is an image format that makes images look good on all screen resolutions, from mobile displays to Retina displays. Test it now! Zoom in to the photo on the left. You can use Ctrl/Cmd-+ to zoom in. You can see more examples on the sample images page. When an image is zoomed out, MultiRes loads a smaller version of the image. How MultiRes works MultiRes keeps each screen pixel filled with at least one image pixel, up to the maximum resolution of the image. A MultiRes image directory contains several versions of the same image at different resolutions. The MultiRes viewer loads the version of the image that's closest to the displayed size. The MultiRes viewer saves bandwidth by not loading the other versions of the image. What happened to SPIF? You can still check out the SPIF image format prototype here.

Présentation de backbone.js Backbone.js est un cadre applicatif pour les applications à forte teneur en javascript. Backbone.js peut se définir comme un framework MVC mais pas au sens classique du terme. Ici le C représente des Collections d’objets. Le M et le V désignent respectivement les modèles et les vues. Backbone.js ne possède qu’une dépendance ferme, il s’agit de underscore.js, qui est maintenu par la même équipe. Le rôle d’underscore.js est de vous apporter tout un tas de méthodes pour vous simplifier la vie (enumerable, binding, template, comparaison…) sans faire 500ko. Généralement jQuery vient compléter la liste des dépendances finales de l’application, car il y a fort à parier que vous aurez à minima besoin de manipuler le DOM. Quand utiliser Backbone.js Backbone.js est un excellent choix pour les applications dites «single page application», c’est à dire une page principale avec un nombre important d’interactions utilisateur. Pour cela Backbone.js possède son propre routeur. Ce que Backbone.js ne fait pas

Fluid Width Video IN A WORLD of responsive and fluid layouts on the web ONE MEDIA TYPE stands in the way of perfect harmony: video. There are lots of ways in which video can be displayed on your site. You might be self hosting the video and presenting it via the HTML5 <video> tag. You might be using YouTube or Vimeo which provides <iframe> code to display videos. <video width="400" height="300" ... <iframe width="400" height="300" ... <object width="400" height="300" ... Guess what. So can't we just do this? <video width="100%" ... Well, yep, you can. <iframe> Video (YouTube, Vimeo, etc.) Our little 100% width trick isn't going to help us when dealing with video that is delivered via iframe. Fortunately there are a couple of possible solutions here. But, but... aspect ratios, legacy content, non-tech users, etc. The above technique is awesome, but it has several possible limitations: It requires wrapper element, so just straight up copy-and-pasting code from YouTube is out. Adding Vimeo Putting it all together

SVG.js v2.7 | Home The lightweight library for manipulating and animating SVG. Why choose SVG.js? SVG.js has no dependencies and aims to be as small as possible while providing close to complete coverage of the SVG spec. It's lean. SVG.js is lightweight. Less is better. Keep in mind it does the same thing, with nearly half the amount of code! It's speedy. SVG.js is fast. Index: rects: generate 10000 rectsfill: generate 10000 rects with fill colorgradient: generate 10000 rects with gradient fill Less is better. Easy readable, uncluttered syntax. Creating and manipulating SVG using JavaScript alone is pretty verbose. SVG.js provides a syntax that is concise and easy to read. // SVG.js var draw = SVG('drawing') , rect = draw.rect(100, 100).fill('#f06') That's just two lines of code instead of ten! Go crazy with animations There is more... License SVG.js is licensed under the terms of the MIT License. Changelog Wondering what has changed in the latest releases?

kig/JSARToolKit The Cost of Frameworks Update: Nov 16th 2015 - Added an extra row in the table for React under production conditions. The good news: it’s 3x slower than vanilla, yes, but in actual terms I’d say it’s fast for TodoMVC! The Polymer TodoMVC sample was also updated to version 1.2.2 today, and that, too, is faster. If you prefer watching to reading, here’s the video of the talk (you can also get the slides, too, if you like): If you prefer reading to watching, well, keep reading… The benefits of frameworks Earlier in the year I wrote about React’s performance characteristics as the tree size it has to manage gets larger (TL;DR the bigger the tree, the more computation work it has to do). Frameworks are fun to use. The key message I heard over and over, sometimes explicitly, and often implicitly, is that ergonomics are the most important factor for many developers. The key message I heard over and over, sometimes explicitly, and often implicitly, is that ergonomics are the most important factor for many developers.

FFmpeg Cytoscape.js Back Alley Coder | A blog about the web, javascript, business, and my life at large HyperApp: The 1 KB JavaScript Library for Building Front-End Apps — SitePoint The problem is creating sophisticated web applications and dealing with the complexity of the tools we have at our disposal. HyperApp was born out of the attempt to do more with less. We have aggressively minimized the concepts you need to understand while remaining on par with what other frameworks can do. In this article, I’ll introduce you to HyperApp and walk you through a few code examples to help you get started. What is HyperApp? HyperApp helps you build interactive web applications. HyperApp is based on the Elm Architecture. Try it online The examples in this article use JSX for familiarity, but you are not required to use JSX with HyperApp. Here is the example above using Hyperx and ES6 template literals. Try it online And for completeness, here is the example again without using external libraries. Try it online Concepts Virtual Nodes HyperApp exposes h, a function that follows the HyperScript signature and is used to create virtual nodes. Hyperx/JSX in: <main id="app">Hi. Vanilla out:

How To Use Pure CSS To Style Web Form Dynamically Plus 12 Awesome JavaScript Plugins Everybody knows about web forms and it has fast becoming part of our daily online interaction. Everyday we will need to enter some sort of information into a web form, whether it's a simple login to your web-mail account, an online purchase, or signing up for a website. These are the basic, and pretty much the effective way of gathering information on the web. Web application interface designs have evolved over the years, from the default browser style to having rich colour palettes design and dimensional background images. We have to thank the adoption of web standards and advanced CSS techniques for such improvements. Normal default web form elements look ugly and unprofessional. How To Skin A Web Form With Pure CSS Pure CSS styling of web form can be achieve by changing the border colour or background colour but how about styling a textfield and textarea with a nice round corner background image? Let's use a contact us form as an example to demonstrate this tutorial. 1. 2. 3. 4.

Related: