effect

bottom-border hover transition

你。 提交于 2019-12-29 02:01:30
问题 Can any one tell me how to do a border-bottom hover effect from bottom to top? Src: http://www.sony.com/electronics/playstation 回答1: Here is a simple sample using the pseudo element ::after The advantage using this in favor of the border-bottom , it will not move the element up and down a { position: relative; padding: 10px 20px; } a::after { content: ' '; position: absolute; left: 0; bottom: -5px; width: 100%; height: 0; background: blue; transition: height 0.3s; } a:hover::after { height:

Issue with progress bar shader in XNA

怎甘沉沦 提交于 2019-12-25 05:52:11
问题 I'm create a simple shader for drawing progress bar in XNA. Idea is simple: there are two textures and value and if X texture coord less then value use pixel from foreground texture, else use background texture. /* Variables */ texture BackgroundTexture; sampler2D BackgroundSampler = sampler_state { Texture = (BackgroundTexture); MagFilter = Point; MinFilter = Point; AddressU = Clamp; AddressV = Clamp; }; texture ForegroundTexture; sampler2D ForegroundSampler = sampler_state { Texture =

Problems with Firefox and jQuery

孤街醉人 提交于 2019-12-25 05:31:23
问题 i use this code for change the size and the opacity of div and create the "zoom-effect" : $("#div5").click(function () { $('#wrap').animate({ 'opacity' : 0, 'zoom': 1.08, },500); $('#wrap').hide(500,function(){ $('#dBenefits').show(); $('#dBenefits').animate({ 'opacity' : +10, 'zoom': 1.08, },500); }); }); $('#back').click(function (){ $('#dBenefits').animate({ 'opacity' : 0, 'zoom': 1, },500); $('#dBenefits').hide(500, function (){ $('#wrap').show({'opacity' : 0,},500); $('#wrap').animate({

Problems with Firefox and jQuery

孤街醉人 提交于 2019-12-25 05:31:13
问题 i use this code for change the size and the opacity of div and create the "zoom-effect" : $("#div5").click(function () { $('#wrap').animate({ 'opacity' : 0, 'zoom': 1.08, },500); $('#wrap').hide(500,function(){ $('#dBenefits').show(); $('#dBenefits').animate({ 'opacity' : +10, 'zoom': 1.08, },500); }); }); $('#back').click(function (){ $('#dBenefits').animate({ 'opacity' : 0, 'zoom': 1, },500); $('#dBenefits').hide(500, function (){ $('#wrap').show({'opacity' : 0,},500); $('#wrap').animate({

What is the true way of adding callback functionality to custom JQuery Animation?

流过昼夜 提交于 2019-12-25 03:59:14
问题 i've found a shake effect in stackoverflow question (here) Code is like below; jQuery.fn.shake = function(intShakes, intDistance, intDuration) { this.each(function() { $(this).css("position","relative"); for (var x=1; x<=intShakes; x++) { $(this).animate({left:(intDistance*-1)}, (((intDuration/intShakes)/4))) .animate({left:intDistance}, ((intDuration/intShakes)/2)) .animate({left:0}, (((intDuration/intShakes)/4))); } }); return this; }; but i need a way to add a callback function (or any

xcode UILabel text add outer glow effect

寵の児 提交于 2019-12-25 01:48:21
问题 How would I add an outer glow effect to a text of a UILabel. I tried to use the layer.shadow... properties but they are really just for a drop shadow. _count.backgroundColor = [UIColor clearColor]; _count.layer.masksToBounds = NO; _count.layer.shadowOpacity = .8; _count.layer.shadowRadius = 5.0; _count.layer.shadowColor = [UIColor whiteColor].CGColor; _count.layer.shadowOffset = CGSizeMake(0.0, 0.0); Thanks 回答1: So I determined there was no way to put this kind effect on text there are ways

Mix 2 videos with FFmpeg (overlay one on top of other)

一个人想着一个人 提交于 2019-12-25 01:06:14
问题 I using ffmpeg through Android-NDK . I've 2 pieces of the videos , The first one is my main video and the second one is my effect video. Now I wanna mix this 2 videos together, Is it possible ? Note : Both videos decoding through MP4 format. 回答1: I don't know how to translate this into the API offhand, but the command-line version of what you're trying to do is something like: ffmpeg -i main.mp4 -vf 'movie=effect.mp4 [f];[in][f] overlay=0:0 [out]' out.mp4 See the docs on movie and overlay for

Show photo with SCRATCH OUT EFFECT by finger

天大地大妈咪最大 提交于 2019-12-24 12:34:44
问题 I need your help to know how to create an iPhone application to show a photo with SCRATCH OUT EFFECT. Something like the effect in this flash tutorial http://www.tutorial5.com/content/view/115/46/ Please help. Thanks. 回答1: You can have a look at the following post on how to create a blurred image effect, I don't think it's the best & fasted method, but it might get you started: UIImage blur 回答2: You can implement the scratch out effect by using CoreGraphics. Subclass UIView for the

AVAudioPlayer affects system sounds

心不动则不痛 提交于 2019-12-24 09:37:20
问题 I use this code to play a short sound effect. This happens when user clicks the return button of the keyboard, which makes the keyboard click sound effect louder than usual. Is it possible to play the effect at certain volume without affecting system sounds? - (void)playCorrectAnswerSound { NSString *path = [[NSBundle mainBundle] pathForResource:@"correct" ofType:@"mp3"]; NSURL *urlPath = [NSURL fileURLWithPath:path]; self.player = [[AVAudioPlayer alloc] initWithContentsOfURL:urlPath error

Sliding effect when adding new items to a WPF ListBox

别等时光非礼了梦想. 提交于 2019-12-24 02:45:23
问题 I have a WPF ListBox control which displays items of an RSS feed. I occasionally check the source of the RSS feed for new items. Once I detect a new item I add it to the observable collection which immediately adds the new item to the ListBox display. Is there a way to 'slide in' the new item from the top, pushing down the existing items? How would I achieve such an effect? Can it be done with a ListBox, or do I need to resort to my own container, such as a StackPanel and animate for example