effects

What is faster, rendering gradient through css or load an image directly?

The reason for my question is because I like the new CSS3 styling techniques, but i'm not quite sure if it's worth it! (sub-question; anybody that knows if it's possible to use jQuery to apply a vignetting effect to a page?) Thanks guys ...

Does jQuery's fadeIn() and fadeOut() not work with IE 8?

I have a page that fadeIn and fadeOut an inline element and jQuery doesn't work. And then when I change the Developer Tools to use Browser Mode of IE 7, then the fadeIn() and fadeOut() effect is showing. ...

On IE 7, jQuery's fadeIn() and fadeOut() requires the user to move the mouse around the area to see the update, why?

I have some jQuery's fadeIn() and fadeOut() and it works well in IE 7 and IE 8 (with the IE 7 Compatibility Mode) -- It works perfectly on Firefox, Chrome, and Safari as well. However, some part of it will not show any update of elements fading out and new elements fading in, until I move the mouse around that area -- then the whole reg...

jQuery: Fade in delay on Load

Hello I've stumpled on something queite nice, I've wanted to use in some upcoming project. It's an animated opacity on load, or you can call it fade in. I wondered if you could link some elements together (ex. 3) so element2 only starts when element 1 i finished, and element3 when no. 2 is? Or should you define som kind of delay on ...

How to randomise and mimic a rollover in jquery?

Hi, I have a JQuery script which acts as a simple image rollover with a nice fade effect. Here is a test version of the current script in action - http://fi-testing.co.uk/SO/rubix-cube.html As you can see, there are 9 blocks, the client wishes for the rollovers to occur randomly (without a hover) to kind of create a ripple/pulsating e...

Starwars text effect in WPF

Hi there, Our company executives have requested the integration of a "Star Wars crawl" style credits screen for our About box in our application and I've been tasked to complete this within a week. We have recently ported our WinForms application to WPF and therefore we're all very new to WPF. As I'm even newer to WPF, I'm not sure wh...

Wanted: jquery plug-in for gaming-machine-like display of numbers / high score

I'm looking for a jquery (or other javascript) plug-in that shows and animates numbers like a high-score on a gaming machine, similar to this: Is there anything like that? ...

What's a good app to get started making sound effects for my app?

I need a few click and beep-type sound effects for my app I'm developing. Rather than scour Google for free wavs, I'd like to try to develop my own. Are there any (hopefully free) apps that might be tailored to something like this? Any insight is appreciated, Tim ...

Javascript component for window/pane flip effect?

I'm prototyping a thin client UI using extjs and am looking for an effect that will simulate a form/pane flipping over to reveal another form/pane. Its for a details view for an object that has two major sets of properties. I found a flex component that can do this, and can even simulate four different forms on the faces of a cube. ...

Android: How to switch between Activities like switching desktops in Home app?

I'm developing an Android Application that has three very similar Activities. I would like the user to be able to switch between them by swiping left and right on the screen. This is how I managed that up to now: I followed this post Then I changed the method onSwipe() in this way: @Override public void onSwipe(int direction) { In...

(Java) How can I create a Drop Shadow/Inner Glow/Outer Glow similar to Photoshop.

I am generating some images using the Graphics2D interface, and occasionally I'd like to be able to draw some text on the image and apply to it effects like the ones in Adobe Photoshop. Right now to generate a 'shadow' on the text I am drawing the text twice, once in the original color, and once in black with a slight (1px) x&y offset....

What is the preferred way to enqueue just a function in scriptaculous?

I have an application, that uses scriptaculous' effects queue to render the view of a game. Ajax-requests read events from a server, from these events, effects are generated and enqueued. Some events have nothing to animate, only code to execute. It is possible, by creating a Dummy-effect, and use the afterFinish option. Is there a be...

jQuery: Fade Out - Do Something - Fade in Pattern

Hello, I seem to regularly write jQuery code of a pattern similar to this: Fade Out ==> Do Something Behind the Scenes ==> Fade In Illustrated below: /// <reference path="jquery-1.4.2.js" /> /// <reference path="jquery-1.4.2-vsdoc.js" /> /// <reference path="jquery.validate-vsdoc.js" /> var fade = "slow"; $(document).ready(function ...

jquery FadeOut for a Class, Runs Multiple Times, instead of Simultaneously, y?

I have a page with the several divs like: By default all are display:none, and I let the user click to show a certain card. Every time the user clicks to load a card I run the following JQUERY: $('.carditem').fadeOut( function() {alert(1) // Animation complete show correct card $('#' + toogleID).fadeIn(); }); What's s...

Apply Post Render Effect to SpriteBatch in XNA

Is there a way, in the XNA framework, to render your 2D scene using the typical SpriteBatch method and then, after that frame is rendered, apply effect to the whole image? For example, blurring, sepia or even making the whole thing look like an old time movie film, with grain, dust, lines, etc? ...

XNA + Pixel Shader Difficulties

I've written a basic 2d pixel shader, and i can't seem to get it to work. If i draw with the effect active, then nothing draws to the screen. But if i disable it, then the texture draws to the screen as expected. My aim is to be able to draw an arbitrary texture to the screen, then have this pixel shader "carve" circular hunks of pixel...

openFrameworks (C++): Blur, Glow and other classic effects

Hi guys, I was doing some simple openframeworks (C++ based) tests drawing different shapes and I was wondering how to apply filters like blur, glow... I come from an AS3 background where this is a piece of cake. I know it won't be that easy but I'd like to find some kind of lead. I've read some people is using ofxShader but I can't fi...

Find currently visible div in jquery...

I have a four divs all set display:none and on document.ready i am showing the first div.. I have 4 link buttons link1,link2...link4... I showing div1 on link1 click and so on.. How to find which div is currently visible in jquery? <style type="text/css"> .ContentDivs { width: 90%; height: 300px;...

HTML input onfocus & onblur ?

ok, today I'm making a helper HTML function. It looks like this: function Input($name,$type,$lable,$value= null){ if (isset($value)) { //if (this.value=='search') this.value = '' echo '<label for="'. $name .'">'. $lable .'</label><input type="'.$type.'" name="'. $name .'" id="'. $name .'" value="'.$value.'" onfocus="if (this.v...

why do my images change position when rolled over?

HI, I have a row of buttons (6 six) al same size. When each one is rolled over.. <img src="home.jpg" onmouseover="HomeAct(this)" onmouseout="Home(this)"/> function HomeAct(obj){ obj.src='webseparada/home.png'; } function Home(obj){ obj.src='webseparada/home.jpg'; } home.jpg is a regular rectangle home.png is a folder where...