Where can I find a decent transparent ajax spinner? [closed] - ajax

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I am trying to find a decent transparent ajax spinner that looks good on any background. I've gone to ajaxload.info and other various generator sites, but none of them look good on a dark background. Anyone know where I can get a TRANSPARENT spinner?

I recently switched to PNG sprites that support alpha channel transparency:
(generated using http://preloaders.net/ )
Even though they require a tiny javascript loop that changes the offset of the background image, I found them quite useful, especially when submitting (POST) forms to the server (animation of normal GIFs often stops in that case). Also, legacy browsers support it better than rotating or drawing custom elements.
var counter = 0;
setInterval(function() {
var frames=12; var frameWidth = 15;
var offset=counter * -frameWidth;
document.getElementById("spinner").style.backgroundPosition=offset + "px 0px";
counter++; if (counter>=frames) counter =0;
}, 100);
Example: http://jsfiddle.net/Ekus/dhRxG/

This is because to make them look good you need alpha transparency (that is, partial transparency on a per-pixel basis), the GIF format (the only common animated image format supported in browsers) only supports binary transparency (each pixel is either 100% opaque or transparent).
The only solution I have come up with for GIFs is to generate loaders on the fly based on the background color — even then it won't work with non-solid colors.
The best solution is to either use an animation that doesn't require alpha transparency (Facebook's three blocks is a good example of this) or try out one of the fancy new CSS3/Javascript/Canvas based spinners - because those animate by actually moving (i.e. rotating) a single frame, it can be a PNG with alpha transparency.

Try using http://spiffygif.com
The halo feature described in their docs provides a workaround solution to this problem

Meanwhile, since CSS animation support is becoming more and more available, here's an impressive set of 10 CSS-only loading indicators:
http://tobiasahlin.com/spinkit/

Use a font.
The code will look something like this, using CSS to rotate a single character of a font:
<i class="icon-spin3 animate-spin"></i>
Check out Fontello to get an "icon" font. For example, here are some good "spin-able" characters offered in the font "Fontelico":
Using a font also lets you set size, color, and transparency very easily (it's just CSS). And it's rendered as a vector graphic, so you'll always get clean edges regardless of size. Quite nice.
ps - One nice thing about Fontello is that it lets you handpick which characters you want, and then you download a zip file that has the stripped down font files and the css you need. To utilize the animate-spin class, be sure to include/use the animation.css file.

Related

How would I go about swapping different transparent images with others in visual basic 6?

So I have a programming project that I have to do for my school. What I have to do is setup a 2 player dice game. I could have gone the easy way and just display the number of the 2 die, but I was thinking of using images that I made in photoshop instead. However, the problem is that I do not know how to change images in an efficient way.
My first option is using the visibility tag on several images laid on top of eachother and change it accordingly as such
image1.visible = false
image2.visible = true
However, I do not think that is very efficient. Images also do not support changing the image with code from my research.
Secondly, I could use a PictureBox instead, which do support changing the image as the program is running. However, it does not support transparency, and the die images are transparent. Plus it gives me the invalid image file error, I guess due to the transparency in the gif files.
There is also the cheap workaround of me making the background of the images the same as the form background.
So is there a more efficient way I am missing out? I know that the cheap workaround would be the best option for this case, but I would like to have this knowledge for future use like semi-transparent pixels that blend in and such.
And before you ask, no, I cannot use another programming language as visual basic 6 is what my school teaches. Thankfully they are changing it soon, but I am stuck with this for now.
Turns out you CAN change the pictures of Images, while keeping transparency and stretch. I am going to properly show it:
Image1.Picture = LoadPicture("YOURPATHHERE.gif")
This is what I get for believing what I've seen on some forum.
Also, the error of invalid image file was due to the images being corrupted for some reason.

Does SurveyMonkey support changing the positions of questions relative to an embedded image?

I'm using SurveyMonkey to create my own surveys, and want to be able to position my multiple choice questions in line with an embedded image like the following:
am I able to re-position these? Or am I only able to change the positioning of these questions through making them horizontally or vertically aligned?
I'm not sure the best way to do this, as custom CSS is not yet supported on SurveyMonkey, but a suggestion would be to modify the question layout.
This lets you specify the width percentage of the question (so you can set them side by side) and you can also set question spacing to align them better.
Also for each question choice there is a rich text editor. So you could insert an image for each choice, cutting the image yourself properly so that they align the way you want them to with your image. The question choices can also be multi-line so you could potentially pad the top/bottom with whitespace to make sure the image aligns.
I think with a bit of trial/error you can get this to work with those methods (not the nicest, but should work). Just note that if you're planning to have some people answer your survey in mobile it will likely not come out the way you expect it.

Lightweight alternative to isotope.js [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
I'm using isotope.js purely because of its animations for adding/removing elements.
I love the effect of items animating to fill the position of removed elements simultaneously as the removed elements fade out.
The thing is, my grid elements are all of a fixed and equal size, and I don't need any of the filtering stuff. I find isotope to be a little clunky, maybe because of the breadth of its functionality.
So I'm looking for an alternative which is:
lightweight
slick
robust and production ready
able to gracefully degrade
Original answer
If someone is still looking you might also want to take a look into a similar jQuery plugin I've written, Filterizr. Filterizr is:
Allows for filtering, sorting, shuffling and searching
Highly customizable (allows users to write their own CSS effects for the transitions when filtering in and out)
Uses CSS3 transitions and transform-translate.
Lightweight, ~20kb
Optimized for mobile performance
Responsive (with your media queries)
Open source and MIT licensed
Download links, tutorials and docs on the
Filterizr Website
Update 06/2019:
Filterizr has come a long way since then.
It is now written in TypeScript JavaScript and can be used without jQuery as a vanilla JavaScript library.
It still allows usage as a jQuery plugin though, you can still consult the Filterizr website as it's up-to-date.
In case someone is still looking check out
Shuffle.js. It is responsive alongwith MIT license.
I also searching that have extensive filter with animation:
Muuri - Open Source MIT (Seem Fast and Good)
MixitUp - High Quality Commercial Library (Extreme Polished)
Other open source either do not have both feature, or optional extensible, Good if you need fast animation only like Macy.js, gridfolio, Tympanus CSS (+ equal included, - equal excluded):
Macy.js: Animation +, Filtering - (Very lack of documentation of css transition)
gridfolio: Animation+, Filtering -
Mansory: Animation +, Filtering - - (but maybe with https://github.com/dynamick/multiple-filter-masonry)
Filtrify: Animation - , Filtering +
Tympanus CSS Tutorial: Animation +, Filtering -
Boardz.css: Animation -, Filtering - (Notable for mention as HQ CSS only Library)
jquery Woodmark: Animation +, Filtering - (Polished Demo)
Seems like you're looking for jQuery Masonry.
In general Isotope is pretty slick for most cases, all depending on the amount of content you throw at it of course.
The reason behind the clunkyness might be jQuery itself. While jQuery is an amazing selector, it's animation and speed of manipulation is lacking a bit because of the sheer amount of functionality included in the lib.
im using jquery Quicksand which is pretty neat and straight forward http://razorjack.net/quicksand/
I have also found some alternative of isotope masonry gallery
https://www.wix.com/app-market/wix-pro-gallery
https://github.com/wix/pro-gallery
---------------OR---------------
Image Photo Gallery Final Tiles Grid (Wordpress plugin)
Meow Gallery (+ Gallery Block) (Wordpress plugin)

How to make responsive images on CDN and without loosing SEO [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
So I'm doing a pre-study on how to implement a responsive design to an existing site with a lot of images. These images would be nice if we could serve differently to the visitor according to device size, pixel ratio and/or bandwidth.
The site is using Akamai as a CDN so we must have a solution that uses different URLs for different image sizes. Doing this by Javascript is fine, we require it anyway.
I was looking at CSS-tricks spreadsheet (http://css-tricks.com/which-responsive-images-solution-should-you-use/) and specifically Foresight.js (https://github.com/adamdbradley/foresight.js) seemed to be the right stuff for us.
Basicly the markup would look something like this:
<img data-src="/images/imagefile.jpg" data-width="320" data-height="240" class="fs-img">
<noscript>
<img src="/images/imagefile.jpg">
</noscript>
But then I noticed that Google will ignore any fallback images placed within tags. This could be devastating to our SEO since the images from the press room are essential to be indexed by Google et al.
So my question is, how do you serve SEO friendly-enough images responsively? Is removing the src-attribute killing SEO? There will still be all the other attributes, the alt-one most important I guess.
yea, image alt tag is very important from search engine optimization point of view. Here there is no harm to resize the image by considering devices or element. Make sure you use meaningful image name to get them up in image search result of Google.
Interesting...
I don't really feel that you =need to "alt" tag all of the copies. From SEO point of view this is both redundant and somewhat spammy (imagine Google's response to a website in which each URL holds 5 [or more] different sized version of the same image, all with the same exact alt tags... )
Allowing Goolge to Recognize tags of the "default size" image should be enough for your SEO purposes.
Another workaround I can think of is to always have live links to all the different sizes (while presenting only one personalized version)
I`m not sure if its feasible, but you don't have to many version or want to present a few selected ones, this will do.
This will not solve the alt tag issue, but at least they all be crawled and indexed separately.
Also, alt tag is really over-rated. Speaking from almost 10 years of experience I can say that is's effect is marginal, at best. Especially if you link to the image includes the relevant KW.
If still worried, you can link to a different HTML page, containing said image and alt tag it there but it sound like too much trouble to me...

To have no LaTeX margins for pictures [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I have many types of diagrams in my paper.
I use at the moment horizontal pages to make pictures readable.
I would like to know how you can remove LaTeX margins from pages where there are pictures.
How can you have no margins for pictures in LaTeX?
Either diddle the various variables directly or use the geometry package.
LaTeX uses a lot of variable to describe the page, so setting them directly is a hassle, I really reccomend using geometry.
And remember there is a silent 1 inch margin. Moreover how close to the edge of the page you can actually print is dependent on you printer. Most won't actually let you get to the edge on any side.
The changepage package can be used to locally change the size of the area that content is put in. Documentation within the .sty file until I get around to writing a real manual.
I did this exact thing before. Here's the code:
\newenvironment{changemargin}{%
\begin{list}{}{%
\setlength{\textwidth}{\paperwidth}
\setlength{\textheight}{\paperheight}
%\setlength{\oddsidemargin}{-1in}
%\setlength{\evensidemargin}{-1in}
\setlength{\topmargin}{-1in}
\setlength{\topsep}{-1in}%
\setlength{\leftmargin}{-1.5in}%
\setlength{\rightmargin}{-1.5in}%
\setlength{\listparindent}{\parindent}%
\setlength{\itemindent}{\parindent}%
\setlength{\parsep}{\parskip}%
}%
\centering%
\item[]%
}{\end{list}}
On the page in question, I also used \clearpage, \pagestyle{empty} and enlargethispage{...}.
You can specify the width of the figure to be bigger than \textwidth.
I think includegraphics is the non-clipping version, (as opposed to includegraphics*)
I assume this would work as long as the vertical size would fit on the page.
Otherwise I'd look on CTAN for packages which allow you to change the margins on the fly.

Resources