Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I am trying to create a Single-Page Scrollable website for a Local Plumbing Company. I had a thought in mind which requires an effect like the one at :
http://sidigital.co/
Can anyone suggest me any JS/Jquery Plugin for this "Water flowing through pipe" Concept?
Well this is mostly achieved using CSS3 more than a JavaScript effect. You could possible write a script that combines firing specific CSS events with a scrolled function, like the parallax effect and the effect as seen on this fiddle.
The CSS Code cuz I am not able to post the link as is:
CSS
#progressbar {
background-color: black;
border-radius: 8px;
padding: 3px;
width: 400px;
}
#progressbar div {
background-color: #0063C6;
width: 50%;
height: 10px;
border-radius: 5px;
animation:loadbar 2s;
-webkit-animation:loadbar 2s;
}
#keyframes loadbar {
0% {
width: 0%;
}
100% {
width: 50%;
}
}
#-webkit-keyframes loadbar {
0% {
width: 0%;
}
100% {
width: 50%;
}
}
HTML
<div id="progressbar">
<div></div>
Related
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 3 years ago.
Improve this question
I'm working on my homework which is creating a simple web page with html, css and javascript. i was practicing on animating things with css, which I've found something cool on this link which it's making something move behind the image.
Here's the thing it's moving behind Team Logo
Now I've tried to use the source page to find out how they managed to animate it, but still got no luck to understand it Since I'm still learning. is there any example base on what I've explained?
I did it based on this answer. That's why I flagged your question as duplicate. It was cool and I couldn't resist doing it.
.hi {
width: 84px;
height: 84px;
background-image: url("https://thunderpick.com/assets/img/bolt/bolt.png");
position: relative;
border: solid 1px black;
animation: playv 1s steps(21) infinite, playh 0.0476s steps(3) infinite;
}
#keyframes playv {
0% {
background-position-y: 0px;
}
100% {
background-position-y: -1764px;
}
}
#keyframes playh {
0% {
background-position-x: 0px;
}
100% {
background-position-x: -252px;
}
}
<div style="background-color: black; width: 86px">
<div class='hi'>
</div>
</div>
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 5 years ago.
Improve this question
I've been looking online for this kind of effect for long time without having success.
It looks like there is a js script that changes dynamically the css -webkit-transform: rotateY(deg) property.
Is there anything online that does the same thing?
I hope somebody can share a similar script thanks.
If there is enough space it shows the boxes with no rotation:
If there isn't enough space the script changes the rotation and get them closer to each other:
Your example looks like a y-rotation. Heres a basic snippet of it.
body {
display: flex;
}
div {
width: 150px;
height: 150px;
background: url('https://picsum.photos/200?random');
transition-duration: .35s;
box-shadow: -3px 3px 3px #000;
}
div:hover {
transform: rotateY(70deg);
transition-duration: .35s;
}
<div></div>
<div></div>
<div></div>
If you're looking for a library that can rotate or animate HTML Elements you can use animate.css. It's easy to use !!
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
I have a div in which, I need to display the div as shown in the image below.
Can we acheive this using css or with any script. Need help
Thanks
Use perspective and transform: rotate.
If you take a look at this link, perspective, you'll find some interesting things one can do
div {
margin-top: 40px;
perspective: 100px;
}
img {
height: 150px;
transform: rotateY(15deg);
}
<div>
<img src="http://lorempixel.com/500/200/nature/1/" alt="">
</div>
This is basic idea.
.parent {
perspective: 600px;
}
.child {
width: 100px;
margin: auto;
height: 35px;
text-align: center;
background: red;
transform: perspective(500px) rotateY(35deg);
}
<div class="parent">
<div class="child">Banners</div>
</div>
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
As mentioned in the title, https://onlycoin.com/ has a smooth mouse scroll effect of the cards getting animated when we scroll.
I want to achieve something similar to that. I have made the webpage. Instead of the cards, I have mobile phones that will animate in that .
Can anyone help me on how I should proceed to do it ?
I have already done the HTML coding on the page and I am really confused with the jquery.animate(); function.
Therefore, the only reference site i know is the one I posted above.
I am a novice in jquery.
Thanks for your help.
It's pretty hard to provide you with a complete explanation, but I put this together to get you started:
http://jsfiddle.net/Ms7gw/
HTML
<div id="container">
<div class="box" id="right"></div>
<div class="box" id="center"></div>
<div class="box" id="left"></div>
</div>
CSS
#container {height: 1000px; width: 1000px; background-color: #000;}
.box {width: 100px; height: 100px; position: absolute; left: 50%; top: 50%; margin-left: -50px; margin-top: -50px; background-color: #ff0000;}
#right {background-color: #aa0000;}
#left {background-color: #aa0000;}
JS
var lastScrollTop = 0;
var leftBox = $('#left').position();
var rightBox = $('#right').position();
$(window).scroll(function(event){
var st = $(this).scrollTop();
$('#right').css({left: rightBox.left + st});
$('#left').css({left: leftBox.left - st});
lastScrollTop = st;
});
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I've checked out several options for compressing/reducing size of CSS but what I'm really searching for is something that will truly DRY your CSS. As in it will take something like this:
html, body { width: 100%; height: 100%; } div { width: 100%, height: 50%; color: blue; } p { color: blue; }
and output something like this:
html, body, div { width: 100%; } html, body { height: 100%; } div, p { color: blue; } div { height: 50%; }