Showing posts with label effects. Show all posts
Showing posts with label effects. Show all posts

Thursday, January 5, 2017

How to Create Animated Visual Effects Using jQuery

How to Create Animated Visual Effects Using jQuery


You can create animated visual effects by setting the CSS visibility property, i.e. making elements appearing and disappearing. Along with making an element appear and disappear, we might reduce the value of its opacity property over the certain period. This king of animated visual effect creates a more pleasing experience for user and jQuery makes them easy.

jQuery defines simple methods such as fadeIn() and fadeOut() for basic visual effects. You can also use an animate() method for producing more complex custom animations. 

Every animation has a duration that specifies how long the effect should last for. You can specify this as a number of milliseconds or by using a string. The string "fast" means 200ms and the sting "slow" means 600ms. If you specify a duration string that jQuery does not recognize, you will get a default duration of 400ms. 

$("#animation").fadeIn(); 
// It fades an element in over 400ms
$("#animation").fadeOut("fast");
// It fade outs over 200ms
$("#animation").fadeIn(5000);
//It fades an element in over 5000ms

You can also define new duration names by adding new string-to-number mappings to jQuery.fx.speeds as given below. 

jQuery.fx.speeds["medium-fast"]=3000;
jQuery.fx.speeds["medium-slow"]=5000;

Here is an example to create animated visual effects using methods fadeIn() and fadeOut() in jQuery 

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script>
jQuery.fx.speeds["medium-slow"]=3000;
jQuery.fx.speeds["very-slow"]=5000;
$(document).ready(function(){
$("#btn1").click(function(){
$("#animation1").fadeIn();
$("#animation3").fadeIn(5000);
$("#animation5").fadeIn("medium-slow");
});
$("#btn2").click(function(){
$("#animation2").fadeOut("fast");
$("#animation4").fadeOut("very-slow");
});
});
</script>
<input type=button id="btn1" value="Start FadeIn"/><br/>
<div id="animation1" style="display:none;background:pink;">It fades an element in over 400ms</div><br/>
<div id="animation3" style="display:none;background:red">It fades an element in over 5000ms</div><br/>
<div id="animation5" style="display:none;background:yellow">It fades an element in over 3000ms</div><br/>

<input type=button id="btn2" value="Start FadeOut"/><br/>
<div id="animation2" style="background:red">It fade outs over 200ms</div><br/>
<div id="animation4" style="background:pink">It fade outs over 5000ms</div><br/>

Preview:







It fade outs over 200ms

It fade outs over 5000ms

You can also set the value of the document that was animated using a function as argument. Here is a jQuery code which quickly fade in an element and when it is visible, display some text in it. 

<script>
$(document).ready(function(){
$("#btn4").click(function(){
$("#message").fadeIn("fast", function() {$("#message").text("Hello this is animation");});
});});
</script>
<input type=button id="btn4" value="Start Animation"/><br/>
<div id="message" style="color:red"></div>

Preview:






Passing a callback function to an effect method allows you to perform actions at the end of an effect. However, that is is not necessary when you simply want to perform multiple effects in sequence. If you call an animation method on an element that is already being animated, the new animation does not begin right away but is deferred until the current animation ends. For example, you can make an element blink before fading in permanently. 

<script>
$(document).ready(function(){
$("#blinker").mouseover(function(){
$("#blinker").fadeIn(100).fadeOut(100).fadeIn(100).fadeOut(100).fadeIn();});
});
</script>
<div id="blinker" style="color:red"><h3>It blinks before fading in permanently</h3></div>

Preview:

It blinks before fading in permanently


jQuerys effect methods are declared to accept optional duration and callback arguments. It is also possible to invoke these methods with an object whose properties specify animation options. 

<script>
$(document).ready(function(){
$("#btn3").click(function(){
$("#effect").fadeIn({
duration: "slow",
complete: function(){$(this).text("Animation was completed");}
});});});
</script>
<input type=button id="btn3" value="Start Animation"/>
<div id="effect" style="background:yellow">This is sample animation effect</div>

Preview:



This is sample animation effect


Related Posts:

  • How to Scroll Top or Bottom of Document Using JavaScript

  • How to Create Table of Contents Using JavaScript

  • How to Select Document Elements Using JavaScript?

  • How to Show Pop Up Window Using JavaScript

  • How to go Back Browsing History Using JavaScript

  • How to Click Button Using JavaScript?

  • How to Write JavaScript Function as URL in Hyperlink?

  • How to use Round, Random, Min and Max in JavaScript

  • How to Concatenate, Join and Sort Array in JavaScript?

  • How to Loop Through JavaScript Array?

  • How to Loop using JavaScript?

  • How to Show Pop Up Boxes Using JavaScript?

  • How to Write Conditional Statements in JavaScript?

  • How to Write JavaScript With HTML?

  • How to create Changeable Date and Time Using JavaScript?

  • How to Validate a HTML Form Using JavaScript?

  • How to create a simple form using HTML?

  • How to Create JavaScript Image Sideshow with Links

  • How to Display Date Format in JavaScript?

  • How to Validate a HTML Form Using JavaScript?

  • What are the Different Ways to Redirect Page in JavaScript?

  • How to create Timer Using JavaScript?


Go to link Download

Read more »

Sunday, January 1, 2017

How to Protect Your Eyes From the Negative Effects of Digital Devices and Blue Light

How to Protect Your Eyes From the Negative Effects of Digital Devices and Blue Light


BEST GREENHOUSES FOR GROOVING VEGETABLES
? ? 1(360)241-1624 ?
? ? 1(360)241-1624 ?
DURABLE! AFFORDABLE! ALUMINUM + UV POLYCARBONATE 


A recent study by Bank of America shows that nearly half of U.S. consumers couldnt last a day without their mobile devices. It makes sense. Think about the first thing that you do in the morning. If youre like me, youre catching up on email before you even get out of bed. Then, you head straight to your computer at work and spend a majority of the day on it or using one of the many other digital devices that are available in todays increasingly-technological society.
But what if I told you that these electronics are emitting a dangerous blue light, which is negatively impacting not only your vision but also your overall health? Its true, and its a major concern for eye doctors across the country.
First, let me be clear: I love technology, and I fully embrace it. I actually use a tablet and Google Glass (definitely a talking point with my patients!) as part of my exam process, because it allows me to spend more time engaging with my patients instead of having my back to them while I work at a computer. But just as I advise my patients to protect their eyes from the sun, I also advise them to take protective measures for their eyes when using digital devices.
Continual extended screen time can impact your eyes in two major ways. The first and most common side effect is digital eye strain. When we look at a screen, our blink rate drops significantly, and our eyes wont put up with that for too long without fuss.

If youve ever experienced slightly blurry vision after staring at the computer all day, that was a sign of digital eye strain. Maybe your eyes feel dry, runny or tired after scrolling through your Facebook feed, or maybe you get a headache after a few hours on the computer. These symptoms are often so common that we dont even recognize them as real issues. While digital eye strain is temporary, if left unaddressed, it can turn into a chronic problem.
The easiest way to address digital eye strain is to blink more. That might sound overly simple, but blinking helps to keep eyes lubricated. Another effective way to avoid or help to resolve digital eye strain is to follow the "20-20-20 Rule" -- every 20 minutes, stare at something at least 20 feet away for at least 20 seconds. This exercise engages your distance vision and helps the eye to "reset."
The second -- and more serious -- impact that too much technology consumption can have on our eyes is damage from blue light exposure. Blue light is just what it sounds like -- its a type of light that gives off a blue color. Blue light is harmful, because its the highest energy wavelength of visible light. This energy is also able to penetrate all the way to the back of the eye, through the eyes natural filters, and thats the problem.
Even though blue light is nothing new, the biggest issue is the amount of blue light exposure that we get each day through digital device use. With this exposure increasing over time, we are actually causing permanent damage to our eyes. But unlike digital eye strain, the effects of blue light are cumulative and can lead to eye diseases like macular degeneration.
Children are especially at risk when it comes to the negative effects of blue light exposure. These days, a lot of homework is done online, and many children have access to (or have their own) digital devices that they are using for increasingly longer periods of time. The difference for children is that their eyes are still developing, and they dont yet have the protective pigments in their eyes to help filter out some of this harmful blue light. Thats why, just like with UV radiation, most blue light exposure occurs before kids are 18 years old.
While it may be a great concern for children, adults are susceptible, as well. This is especially true as adults are using digital devices more and more in both their personal and professional lives. So what can you do about it?
First, you can take steps to protect your eyes from the harmful effects of blue light. If youre not able to limit your digital device use, at least cut back on it before bed. Studies show that exposure to blue light a couple of hours before bedtime actually suppresses melatonin and delays deep REM sleep significantly. So cutting back on tech use at night means getting better sleep, making people more productive at both work and school (and speaking from my own personal experience, it makes children more pleasant).
Second, you should consider talking with your eye doctor about lenses that filter out blue light (and no, these arent the old bright orange blue-blocker eyewear from the 90s). The lenses have little-to-no tint and can help to minimize the direct blue light exposure that you get throughout the day. Most of my patients who have these lenses noticed an immediate increase in eye comfort because of the improved contrast, which helps to relax the eyes. And if you have children, I would absolutely recommend these lenses -- especially if they have trouble sleeping at night.
By keeping in mind a few simple ways to protect the eyes, we can take pleasure in knowing that our eyes will last much longer than our trusty smartphones, tablets and computers.

sourse:newsroom 






Durable Greenhouses made from Polycarbonate UV Protected material and Aluminum



ALSO PLEASE VISIT THIS VIDEOS AND SEE IF YOU FIND SOMETHING NEED:

Windows Registry Tools can be downloaded here: 
How to kip your PC Private by deleting DATA Permanently 
http://askpctech.blogspot.com/2016/03/kip-your-pc-privat.html


This tutorial is made up on request several  users, is well is fallowing video:
1)How to Delete Paint Recent Pictures from List in Windows 7 

2)Win 7– Fix for “Safely Remove Hardware and Eject Media” not working How To

3)Windows 10 How to Fix Black Screen After Booting

4)How To Remove Windows 10 Upgrade Notification On Windows 7 And Windows 8

5)How to Delete Face book Page Permanently - 2015

6)How to Uninstall Windows 10 and Downgrade to Windows 7 or 8.1

7)detected: not-a-virus:remoteadmin.win32

8)How to change pictures into icons for folders

9)Speed up your PC Disable System Restore on SSD

10)Speed up your PC Disable Scheduled De-fragmentation SSD

11)2015 Black screen of DEATH Windows 7 & 8 - with cursor at start-up SOLVED

12)Upon start up only wallpaper shows FIX
13)Here is video on Windows 7 & 8 - Black screen with cursor at start-up FIX 

You can also open Task Manager by pressing Ctrl+Shift+Esc.
14) I bought a windows 7 PC but it Look alike old PC FIX:

15) Windows 7 & 8 - Black screen with cursor at start-up FIX:

16) How To Fix Minecraft OpenGL Error Windows 7 xp vista 720p :

17) removing bars using regscanner regedit & file shredder 720p:

18) How to Recover windows Explorer from error 2014 720p

19) HOW TO Save on battery online 

20) Windows 7 & 8 - Black screen with cursor at start-up FIX 

Upon start up only wallpaper shows no icons
CTL+ALT+DEL then click file and new task. then type explorer.exe and press ok

Best Greenhouse system 2015 

Go to link Download

Read more »