Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have a website with a grid of elements that scrolls down. Something very similar than this example:
I would like that, when you click on an element, it zooms in on this element, the other elements disappear, and next to the chosen element's image, some text is displayed. And when you exit this view, the text disappears, and unzoom to the initial view with the grid of all elements.
I don't know how this effect is called - if it ever has a name - and I am having a hard time figuring out how it could be done.. jQuery ? CSS animation ?
I am open to any leads ! Thanks for your help,
I've made a piece of code with jQuery. You can achieve your goal with many ways but here is one.
You can use scale() CSS3 properties to make the zoom on the image and hide() with jQuery to hide the other ones while you click() on one.
If you can't find a solution with these hints, I've made an example of what you wants right here
You can create new div on click with absolute position and display it on front of other elements(bigger z-index)
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
So I've seen a mouse-hover effect on 2 websites so far and I really like it.
This is the effect I'm talking about.
I'd be grateful if somebody can tell me how to get that effect on my webpage.
It only appears under your cursor when you hover over the page.
The site you have linked in the comments uses the HTML canvas element. But You can simply use already existing libraries for that effect.
Examples mentioned in the comments:
http://jnicol.github.io/particleground/
http://github.com/VincentGarreau/particles.js
Simply, Go to the webpage you wanted to Copy it's effects or anything from it
Right click, View page source
If the effect is made by Css, you will find it in stylesheets tab
If it's using jQuery/Js, Search the head for <script> , Read them and copy the effect (assuming that you understand js/jquery
For more simplicity, use Firebug, open it and just point the cursor at the item you want to see it's source.
But, actually
You can find it at github Here
Change what you want.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I want to create a webpage with several small tiles that enlarge when clicked (And show more/different content, but that's not a part of this question).
This is what I have now: http://puu.sh/nX929.png
When I click on the first tile, it looks exactly like I want it to: http://puu.sh/nX9l9.png
But when I click the second tile it looks like this: http://puu.sh/nX95G.png (gap on the left)
That's not what I want, I want to other (small) tiles to float around it. To fill the empty space.
The source code (+ live example) can be found here (but I wouldn't mind doing it in a completely different way): https://www.crescendosassenheim.nl/Hugo/Training/
I don't even know what to Google, because I have absolutely no idea what kind of technique I can use to achieve what I want. Any suggestions?
http://masonry.desandro.com/methods.html Take a look at this I am sure this will help you, what you want is even displayed at the bottom of the page i am linking.
Download masonry in your computer link to it and follow the little guide in their website.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm working on a huge single page website and would like to show an scroll down hint (icon or something like that) at the bottom of the window when the user visits the website.
The hint should vanish when the visitor either scrolls down or clicks on the icon. I've seen this on several websites which I can't remember now unfortunately. Already been searching on but with no results as I'm probably searching with the wrong keywords...
Anyone has any directions on where to start to achieve this?
Here is a start to get the scroll hint working. Now on styling, that's up to you but I would personally do something like position: absolute and then work from there and give it a zIndex about everything on the page.
$(window).scroll( function() {
if($(document).scrollTop() == 0 ) {
// SHOW scroll hint
} else {
// HIDE scroll hint
}
});
I did this on one of my own web pages.
http://codepen.io/pattmorter/pen/mFDLs
Just check out the javascript and the css.
I think you would need an ID on your icon/link and then have two event listeners. One for clicking on the ID itself and the other onscroll. Once either of those events are fired you can call .remove()
If you don't know where to start, try to read reference of window object. For visibility change you can use opacity, and position attribute to make it fixed at bottom of screen.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm trying to build a JavaScript carousel exactly like the simple version of the famous JCarousel but I want to do it with no jQuery at all. Why do I want to do that? Well, because I'm trying to really learn and understand how JavaScript works.
I've been searching forever to find an example with no use of libraries but I haven't been able to find anything. If anyone can point me out to something similar to what I need I'd appreciate.
Now, basically my question when it comes to build the carousel is related to the movement of the images in the list. So I have all the images in a list, I have buttons for the arrows left and right, ok but when I trigger the event I just don't know where to start in order to move all the images left or right...
Any clues?
You'll likely find examples that use libraries because some of these things are pretty intense. The theory is that you'll want to make a very wide div with all the images arranged horizontally, then on button pushes, set the div's css's left position to add or remove the value of the image's width. Libraries are very good at wiring up button clicks to callback functions, querying and setting an element's css, measuring an element's width, and manipulating the dom to take (for example) a list of <li> tags and making it into a very wide div. Add the graphic design constraints, and though I applaud and reverence your desire to do it by hand, you'll spend a very long time reinventing the wheel.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I want to know the name of jQuery feature. It is, when you add it, you can slide through your page elements, for example, similar feature is slider (with which you can slide through videos and pictures), but I need to slide through blocks, for example I have 3 small blocks (all content inside div), block size is 600 x 300, I need to add arrows to the side of them, and when I press arrow, it fades away current block and all items inside it, and shows next one.
Hope you can help me.
jQuery cycle plugin is a popular and customizable 'slider' or 'carousel'. Just google for jquery sliders or jquery carousel, and you will find many other similar 'plugins'. Many of them have example pages you can look at to see which one you like. And most of them support sliding 'div' block elements.
I think you want jQuery functions. try following any one:
fadeIn(); fadeOut();
toggle();
slideUp(); slideDown(); slideToggle();
carousel();
these are jQuery function. try it.
I hope you will get the solution.