Si vous êtes un concepteur web et vous ne voulez pas utiliser le Poppular JavaScript cadres tels que jQuery, YUI, ... JavaScript article.
- Demo
- Agrandir
- Recharger
- New window
G�n�rez vos vid�os d'entreprise par l'IA avec la voix ou simplement du texte
Votre premi�re application vid�o AI GRATUITE ! Automatisez votre premi�re vid�o AI. Cr�ez votre vid�o professionnelle en 5 minutes gr�ce � l'IA. Aucun �quipement ni comp�tence en montage vid�o requis. Production vid�o sans effort pour les sp�cialistes du marketing de contenu.
4. Render Interactive 3d Shapes with Raphael JS
- Created by: Dmitry Baranovskiy
- License: MIT
- Usage: Draw SVG shapes on the page
- Size: 58.4kb (compressed)
- Compatibility: All (all common versions from all common vendors, including IE6)
- View Demo
- Download
Ok, so this library isn't quite so small, but there's a reason for that; the library does a huge range of things and adds complete SVG control to a web page. Frankly, its power is awesome. Imagine being able to draw smooth curves across a web page and create custom shapes on the fly - Raphael does that.
You can do rounded corners that are completely cross-browser with no images (other than those actually drawn by the library), you can create faded reflections for any images, rotate the images dynamically and much more. As all paths are drawn using SVG elements, you can attach JavaScript events to them so that people can interact with the images on mouseover or click (or any other JS events). The possibilities are endless and the API provides a wide range of different methods that make working with the library a pleasure.
Usage
The library must of course be linked to:
<script type="text/javascript" src="/javascript/article/5_JavaScript_tools_Make_Web_Design_Easier/raphael.js"/>
This is it, there are no other dependencies. Now we can begin creating our SVG shape:
<script type="text/javascript"> var canvas = Raphael(50, 50, 620, 100); var shape = canvas.rect(0, 0, 500, 100, 10); shape.attr("fill", "#fff"); canvas.text(250, 50, "Using Raphael to create custom shapes\ndrawn on the fly is extremely easy").attr("font", "20px 'Arial'"); </script>
The library is made to be easy to use and we've only used a tiny fraction of its capabilities in this example. The page that this is used on should appear like this:
5. Progressively Enhance Your Site into the Future with Modernizr
- Created by: Faruk AteÅŸ and Paul Irish.
- License: MIT
- Usage: Detect HTML5 and CSS3 support
- Size: 7kb (compressed)
- Compatibility: All
- View Demo
- Download
It's an exciting time for web development with CSS3 and HTML5 advancing by the day, but it's also a frustrating time because we've got all these advanced new technologies coming out with very little support. We want to start using all the great new HTML5 and CSS3 features, but most of the new HTML5 elements for example are only supported in maybe a single browser.
Modernizr is a tiny little library which simply tests whether the current environment supports a series of advanced features, such as the new <audio> and <video> elements. A JavaScript object is then created by the library which contains Booleans indicating whether each feature is supported. So if the current browser does support the new
The library also adds class names to the <html> element that we can target with CSS in order to hide certain elements to the page, so when the <audio> element is supported, <html> element will receive the class name .audio. When browsers that don't support it view the page, the element will get the class .no-audio.
This is incredible because it means that we can safely add these new features to our pages for the browsers that do support them, without causing chaos in the browsers that don't. In the nature of progressive enhancement, we can create an accessible and broadly support core of content, and then progressively add more and more features for browsers that support them.
Usage
Let's see it in action to display some nice CSS3 effects; first we just link to the very tiny library using the standard <script> element:
<script type="text/javascript" src="/javascript/article/5_JavaScript_tools_Make_Web_Design_Easier/modernizr-1.0.min.js"></script>
Then we can add the following CSS:
.no-audio #audioContainer { display:none; }
This will ensure that browsers which do not support the <audio> element do not see it. The element does provide a built-in fallback for browsers that don't support it, but this way is better. The body of the page could then look something like this:
<div id="audioContainer"> <audio id="audio" src="http://upload.wikimedia.org/wikipedia/en/7/77/Jamiroquai_-_Snooze_You_Lose.ogg" controls"true"></audio> </div> <a id="linkToAudio" href="http://upload.wikimedia.org/wikipedia/en/7/77/Jamiroquai_-_Snooze_You_Lose.ogg">Link to the audio</a>
Once this is done we can detect whether the browser supports HTML5 audio and show or hide the link to the media (we could easily do this using just the CSS, but this way we get to see the Modernizr object in action):
if (Modernizr.audio) { var audioLink = document.getElementById("linkToAudio"); audioLink.style.display = "none"; }
This is all we need; capable browsers will see the <audio> element but not the link, while less capable browsers will see the link and not the <audio>:
Conclusion
Each of these libraries caters to a very specific problem; they're generally much smaller than more well known and general purpose libraries, but just as useful for their specialized purpose. Each of them can aid us in one way or another when developing web sites from either easing development in IE6, using non-standard fonts without cumbersome replacement techniques, to detecting support for the latest CSS3 and HTML5 technologies or generating complex and interactive images.
- Sent (0)
- Nouveau
Générez vos vidéos d'entreprise par l'IA avec la voix ou simplement du texte
chatGPTaz.com
Parlez à ChatGPT dans votre langue maternelle
AppAIVidéo
Votre première application vidéo AI GRATUITE
Deepfake Video
Deepfake AI Video Maker
Deepfake
Deepfake AI Video Maker
AI Deep Fake
Deepfake AI Video Maker
AI Voice Generator
Most Realistic Text to Speech AI Solutions
AI Voice Generator
Most Realistic Text to Speech AI Solutions
AIvidio
AI Video Mobile Solutions
AIvideos
AI Video Platform & Solutions
AIvedio
AI Video App Maker
Artificial General Intelligence
Ai and higher level Artificial General Intelligence (AGI)
Artificial General Intelligence
Ai and higher level Artificial General Intelligence (AGI)
Faceswap AI en ligne
Échangez des visages, des vidéos, des photos et des GIF instantanément avec de puissants outils d'IA - Faceswap AI Online GRATUIT
Faceswap AI en ligne
Échangez des visages, des vidéos, des photos et des GIF instantanément avec de puissants outils d'IA - Faceswap AI Online GRATUIT
Faceswap AI en ligne
Échangez des visages, des vidéos, des photos et des GIF instantanément avec de puissants outils d'IA - Faceswap AI Online GRATUIT
Powerful AI Presentation PPT Maker for FREE
Build an impressive presentation with our free online AI presentation app
Your next top AI Assistant
Claude AI, developed by Anthropic
Your next top AI Assistant
Claude AI, developed by Anthropic
Temu gratuit 500 $ pour les nouveaux utilisateurs
Claim Free Temu $500 Credit via Affiliate & Influencer Program
Crédits publicitaires TikTok gratuits
Maîtrisez les publicités TikTok pour le marketing de votre entreprise
Crédits publicitaires TikTok gratuits
Maîtrisez les publicités TikTok pour le marketing de votre entreprise
Dall-E-OpenAI.com
Générez automatiquement des images créatives avec l'IA
chatGPT4.win
Parlez à ChatGPT dans votre langue maternelle
Premier produit d'intelligence artificielle d'Elon Musk - Grok/UN.com
Parlez au chatbot Grok AI dans votre langue
Outily.win
Centre d'outils ouvert et gratuit, utilisable par tous et pour tous, avec des centaines d'outils
GateIO.gomymobi.com
Airdrops gratuits à réclamer et à partager jusqu'à 150 000 $ par projet
iPhoneKer.com
Économisez jusqu'à 630 $ à l'achat d'un nouvel iPhone 16
Acheter le robot Tesla Optimus
Commandez votre robot Tesla Bot : Optimus Gen 2 dès aujourd'hui pour moins de 20 000 $