effect

Fade Effect on Link Hover?

不羁岁月 提交于 2019-11-26 23:52:37
问题 on many sites, such as http://www.clearleft.com, you'll notice that when the links are hovered over, they will fade into a different color as opposed to immediately switching, the default action. I assume JavaScript is used to create this effect, does anyone know how? 回答1: Nowadays people are just using CSS3 transitions because it's a lot easier than messing with JS, browser support is reasonably good and it's merely cosmetic so it doesn't matter if it doesn't work. Something like this gets

How do I blur an image?

泪湿孤枕 提交于 2019-11-26 23:39:58
问题 I'm trying to implement a blurring mechanic on a java game. How do I create a blur effect on runtime? 回答1: Read about/Google "Convolution Filters", it's a method of changing a pixels value based on the values of pixels around it. So apart from blurring, you can also do image sharpening and line-finding. 回答2: Google "Gaussian Blur", try this: http://www.jhlabs.com/ip/blurring.html 回答3: If you are doing java game development, I'm willing to bet you are using java2d. You want to create a

Welcome screen before website loads (Click to enter) [Splash Screen]

余生长醉 提交于 2019-11-26 22:54:59
问题 How would I create a welcome screen on my website? For example, I have an image and a link that says "ENTER" when the user clicks enter the website appears. How would I do that? Also if possible with Javascript or JQuery, When the user clicks "ENTER", Would it be possible to crossfade from the splash screen to the website? I don't have any code as of yet. 回答1: You can put your splashscreen in a div on top of your website at the first visit and when the user click on it (or on the "Enter" link

How to create a slowing scroll effect on a scrollbox?

天涯浪子 提交于 2019-11-26 22:11:52
I like to create a smooth slowing scroll effect after panning an image in a scrollbox. Just like panning the map in maps.google.com . I'm not sure what type it is, but exactly same behaviour: when dragging the map around with a fast move, it doesn't stop immediately when you release the mouse, but it starts slowing down. Any ideas, components, links or samples? The idea: As per your comment, it should feel like Google Maps and thus while dragging the image, the image should stick to the mouse pointer; no special effects required so far. But at releasing the mouse button, the image needs to

Slide JPanel Content in a JForm on Java

这一生的挚爱 提交于 2019-11-26 11:28:18
问题 I have a question. I want to make a swing form that, when clicking in a button he slides a panel (with his content) to the left so the panel on the right replaces it with a smooth effect. I Have tried to do a while how checks the size of the panel and then minimize it and shows the next one like this : while (jpanelprincipal1.getWidth() < 439 || jpanelprincipal1.getHeight() > 250) { int panel1width = jpanelprincipal1.getWidth(); int panel2height = jpanelprincipal1.getHeight();

How can I execute multiple, simultaneous jquery effects?

橙三吉。 提交于 2019-11-26 09:58:37
问题 I am animating some error/validation elements on a page. I want them to bounce and be highlighted, but at the same time if possible. Here\'s what I\'m currently doing: var els = $(\".errorMsg\"); els.effect(\"bounce\", {times: 5}, 100); els.effect(\"highlight\", {color: \"#ffb0aa\"}, 300); This causes the elements to first bounce, and THEN be highlighted, and I\'d like them to occur simultaneously. I know that with .animate() you can specify queue:false in the options, but I don\'t want to