
Sharrre - A plugin for sharing buttons Website Instructions djyde/StoreDB Un « onresize » ou « onscroll » plus performant en JS - Tutoriels | Creative Juiz Si vous pratiquez couramment le JS, vous avez certainement remarqué que certains évènements sont déclenchés de manière assez ponctuelle, et d’autres peuvent être déclenchés de manière très fréquente et devenir assez difficile à gérer, c’est le cas de « onscroll » et « onresize » par exemple. Lorsque vous implémentez un écouteur d’évènement sur l’un de ces évènements (je vais prendre « onresize » pour les exemples suivants), vous verrez rapidement, au redimensionnement de la fenêtre, que ceux-ci sont exécutés à chaque changement de pixel dans la largeur de la fenêtre. Le code utilisé la plupart du temps Souvent, et de manière assez simple, nous implémentons un écouteur de la sorte : window.addEventListener('resize', function(){ console.log('resizing'); }); Si vous ajoutez ça dans les scripts JS de votre projet, et que vous ouvrez la page sur votre navigateur, vous constaterez en ouvrant votre console (F12) et en redimensionnant la fenêtre, que la console s’affole un peu.
Advanced Gmail Filters to Manage Your Email Messages Gmail filters help you sort incoming messages based on certain criteria. This tutorials shows how you can setup your own Gmail filters that give you greater control over how your emails are sorted. Gmail filters help you automatically sort email messages based on rules. So if your boss has sent an email message, the filter can mark it as important. If the email has the word “Unsubscribe” somewhere in the message body, it can be marked as a promotional message and so on. While the built-in Gmail filters are powerful, they do have certain limitations. For instance, you cannot have a Gmail filter that does case-sensitive search. We often get spam messages that have a few dozen addresses in the TO and CC fields but there’s no filter to automatically redirect such messages to the SPAM folder of Gmail. What you see above is a set of 10 Gmail filters that were created with Apps Script. The best part is that you don’t have to know scripting to use either of these filters.
Responsive & Fixed One Page Nav Adtile Technologies wrote this on Today, we are open sourcing the JavaScript code and the assets we used to build the above functionality for our new website. The code and examples are hosted on GitHub and can be found from here. There’s a live example too, under our site, give it a spin. Fixed Nav Features Fixed positioned, always visible navigation barUses vanilla JavaScript, no jQuery requiredSmooth animated scrollingRemoves 300ms tap delayAdds a mask over the content when navigation is openAuto highlights current location when scrolling the siteUses a tiny custom font for icons (only two characters included)Closes the navigation when user tap’s outside of itTapping a link changes the URL, so users can still copy/paste it from the address bar and link to different sectionsBuilt progressive enhancement in mindTested to be working in IE6 and up Fixed Nav on GitHub →
Animer ses tracés SVG avec Vivus.js - Ressources & Outils | Creative Juiz L’utilisation du SVG est de plus en plus fréquente dans la composition de nos éléments d’illustration, nos logotypes ou encore nos icônes. L’un des avantages du SVG est sa capacité à s’adapter à tout type de densité de pixels. Un autre avantage est sa capacité à hériter de styles CSS et la possibilité d’animation. Veni, vidi, Vivus Vivus.js est une bibliothèque JS très légère et sans aucune dépendance (pas de jQuery, Zepto ou MooTools à charger) vous permettant d’animer vos tracés SVG assez simplement. Celle-ci propose différents types d’animation par défaut et un système de mise en place de scénario. Comment fonctionne-elle ? Pour créer ses différentes animations, le script utilise la propriété CSS strokeDashoffset des éléments de tracé. L’animation se déroule toujours en « dessinant » les éléments dans le même ordre, dans l’ordre d’apparition des tags SVG. Ce code est inspiré d’autres travaux existants. Comment l’utiliser ? anim1.reset(); anim1.play(); Amusez-vous bien !
Kill Your Airbnb's Hidden WiFi Cameras With This Script The Internet of Things is here, and in many ways it's already catapulting us into the nightmarish future that dystopian science fiction writers predicted. But while always-connected home devices may be en vogue, most sane people still believe that visiting someone's house or staying at an AirBnB shouldn't mean tacitly consenting to, say, having your every move recorded and broadcast over the internet by a WiFi camera. Enter dropkick.sh, a script by countersurveillance artist Julian Oliver that finds any Dropcam or similar WiFi-connected camera on a local network and disconnects it. “I was pretty horrified to read of so many (women in particular) having their privacy strategically abused, enabled by this new family of devices,” Oliver told Motherboard in a Twitter DM, referring to several stories that have come out in the past year about people discovering Dropcams and other internet-connected devices secretly spying on them.
13个非常有用的jQuery模态插件_图范儿-设计|插画|新鲜的图片 在今天的集合,我们将呈现给你13个jQuery的模态的插件。目前许多网站都使用jQuery,这是很重要的,一个人应该知道什么jQuery插件可用,以保持最新的最新的网页设计趋势。借助jQuery插件,可以保持他的网站上的人群。 如果你想显示你的用户快速的信息,然后jQuery模态对话框将是你不错的选择。 Avgrund模态 Avgrund是一个jQuery插件,用于模态框和弹出窗口。 FancyBox FancyBox是一个工具,用于显示图像,HTML内容和多媒体的Mac风格的“收藏夹”漂浮凌驾网页。 简单的模式 SIMPLEMODAL是一个小插件创建模态窗口。 Lightview ,Lightview建改变的方式覆盖的内容在网站上。 jQuery.bPopup.js bPopup是模态弹出一个轻量级的jQuery插件(只有1.34KB gzip压缩)。 LeanModal.js 光秃秃的骨头模态对话框窗口。 jQuery的SuperBox! jQuery的Superbox! Highslide JS Highslide JS是一个图像,媒体和画廊浏览器JavaScript编写的。 GreyBox ,GreyBox可以用来显示一个美丽的网站,图像和其他内容。 显示:jQuery的情态动词的制造 揭示的是真棒,因为它很容易实现的,是跨浏览器兼容与现代浏览器(当然一些优美的退化),重量轻,只有1.75KB。 jQuery的灯箱插件 jQuery的灯箱插件是简单的,优雅的,不显眼,无需额外的标记,用于覆盖在当前页面上的图像通过jQuery的选择器的强大功能和灵活性。 PrettyPhoto是一个jQuery库。 prettyPhoto是一个jQuery的灯箱克隆。 Simplemodal SimpleModal是一个轻量级的jQuery插件,它提供了一个功能强大的界面模态对话框的发展。
提升网站水平:12个最好的视差滚动教程 创建吸引各种游客的注意力和兴趣有很多种,其中之一是视差滚动(Parallax Scrolling)技术。在网页设计中,视差滚动是当下流行的网页设计技术,通过让多层背景以不同的速度或者不同的方向移动形成 3D 运动效果,有很强的视觉冲击力。 这里集合了20个最好的视差滚动教程,里面有详细的制作步骤的在线演示,你很快就能把这种流行的网站效果应用到自己的的网站中。 您可能感兴趣的相关文章 Prarllax Slider with jQuery 详细教程 效果演示 Fluid CSS3 SlideShow with Parllax Effect 详细教程 效果演示 Parllax Ccontent Slider with CSS3 and jQuery 详细教程 效果演示 Parallax Effect 详细教程 效果演示 Parallax scrolling website interfaces 详细教程 效果演示 Funky Parallax Background Effect Using jQuery 详细教程 效果演示 Building a Parallax Scrolling Storytelling Framework 详细教程 效果演示 Create Parallax Scrolling Website Using Stellar.js 详细教程 效果演示 One Page Website, Vertical Parallax 详细教程 效果演示 A Simple Parallax Scrolling Technique 详细教程 效果演示 The Parallax Effects with jQuery 详细教程 效果演示 Scrolling Parallax 详细教程 效果演示 本文链接:提升网站水平:15个最好的视差滚动教程 编译来源:梦想天空 ◆ 关注前端开发技术 ◆ 分享网页设计资源