Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I'm looking for a library that speeds up writing of HTML5 SVG, and manipulating the objects. I want something that can leverage the power of all SVG features.
I was using Raphael but annoyingly it (severely) limits functionality to that of VML. I don't care about cross-browser compatibility, I just want a full javascript abstraction of SVG. I don't care about conversion to flash, I don't care about conversion to 2d Canvas, ... you get the picture!
What options are there? Or should I just get used to raw SVG declarations and manipulation?
Thanks
There's a new compact library called svg.js that offers easier svg manipulation, and which doesn't have any VML legacy code/restrictions like Raphaƫl has.
If your graphics generate, in some way or another, from data, I would give D3.js a try.
Even if the data weight of your needs is low, I think that it can be very useful to give it a look.
On the plus side is that it generates absolutely standard svg, style with standard css, so you can check what is happening easily. You could even use it to generate svg, and then copy/paste your svg to another project without the D3.js.
Another plus is the support for transitions, that is very good imho.
link
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I'm wondering if anyone can recommend a good boilerplate file in .less to start a project with. Ideally this .less file would contain at minimum the following:
CSS Resets styles
CSS Normalizer styles
CSS3 Helpers (box radius, gradients, box shadow, transition)
Basic Colors Setup
Basic Styling for some common UI elements (buttons, tables, inputs,
typography etc.)
Responsive images
I don't have much control over the markup, so I'm looking to write alot of custom attributes for classes that are already defined. Bootstrap and other popular libraries that require class definitions will not work for me. I'm hoping a markup agnostic boilerplate .less file will give me a good start.
Look at using less extend, bootstrap is still a great boilerplate. You can still take only the less files you want from it. You'd want normalize.less and mixins.less from the bootstrap project.
You can use extend to get whatever else you want out of bootstrap.
p {
&:extend(.clearfix all);
}
img {
&:extend(.img-responsive);
}
or even
p {
.clearfix;
}
If your worried about namespacing collisions you can try your hand at some global search and replaces. If you need that, I can try to help you with it. I wrote something a while back.
Of course you need the bootstrap project source for this - go here and click Download Zip - https://github.com/twbs/bootstrap
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I have a CSS file and an icon set which is referenced from that CSS file. The 500 icons are around 200k altogether, so I think inlining them into the CSS file at wherever they are referenced would not increase used bandwidth, and significantly decrease the amount of requests sent to the server.
Does anyone here know a tool or script to automate the replacement of
url('images/....png')
with
url(data:image/png;base64,....)
Perhaps there is already a tool that automates this?
Otherwise I'll have to write my own regexp. Is a bash script the way to go?
if you really want to decrease the amount of requests then look for a way to convert all the icons into a sprite! it is basically all your images pasted on to one single image file with a css file which has position of all the images have a look at glyphicons:
http://getbootstrap.com/components/
usage of sprite will not reduce the size but will surely reduce the number of requests being sent to server as the client will download one single big image, which will have all the icons and according to css properties will show the relevant icons
use this for generating sprites
http://css.spritegen.com/
and i would never recommend to use inline styling. If needed should be used minimally. Because it does slow down the rendering
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I am in need of a library/plugin for HTML5 canvas that allows you to sketch. I am aware that I can simply create my own script to draw on canvas, but it's the additional functionality that I don't know how to implement. So I'm hoping someone can suggest a library that can add support for:
Brush manipulation (image, size, color)
Layered drawing (or a form of 'history')
Undo support (or again, history)
Does something like this exist? If not can someone send me in the right direction with creating my own functionality like this?
Thank you!
I'm not sure about the undo support but sketch.js is a good place to start.
http://intridea.github.io/sketch.js/
Kinetic JS will be a good start ...
http://kineticjs.com/
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I want to do a presentation using HTML5. If some of you already use a good HTML5 framework to make slides please can you give me the links.
I like this one :
http://slides.html5rocks.com
But I want to have more information before choosing one.
reveal.js
deck.js
html5slides
I personally prefer reveal.js. Simple enough to easily create slides, but still powerful enough to do everything I want it to do.
Well I have used and been impressed by impress.js:
http://bartaz.github.io/impress.js
Its output is very similar to Prezi.
Bunkr is super convenient and fun to use, and nice enough.
But I haven't found a slide show framework that can handle math.
Hopefully they'll add this feature soon!
Update: reveal.js can use MathJax to handle math, as described here.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
Can somebody please refer me to a comprehensive tutorial on Canvas which covers all properties / functions?
I also need a definite reference on Canvas - something like w3schools
This has friendly/easy tutorials
http://developer.mozilla.org/en/Canvas_tutorial
This is pretty comprehensive
http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#the-canvas-element
Here is a HTML5 Canvas cheat sheet (PNG and PDF) and a HTML version of the same.
Here is a website dedicated to cheat sheets for developers, but it doesn't have any other canvas cheat sheets/references.
I run a site called Canvas Demos, where you can find lots of tutorials and tools to help you build great applications with the canvas element.
It also contains a list of games and applications made by other people with the Canvas element.
Rob Hawkes recently release "Foundation HTML5 Canvas for Games and Entertainment" book. http://rawkes.com/foundationcanvas
There's one which covers all the properties/functions:
A comprehensive reference for HTML5 canvas
Take a look at the Canvas chapter from Dive Into HTML5: http://diveintohtml5.info/canvas.html