Problems while Resizing or shrink Cycle2 slide show Images - javascript

Hello Stackoverflowers,
First of all thank you for reading this post. I am having a rough time trying to figure out how to make my Cycle 2 slideshow images shrink and move the images next to the other divs while resizing windows. The funny thing is that when the slide show has only one png the image moves next to all other divs while resizing, but when I add another image to the slide show all the images stays in its own position and doesn't move with the shrink.
here is my code for the Sector:
<div id="clientscont">
<div class="Title2">Clients</div>
<div id="container">
<div id="wrapper"> <div class="controller" id="prev2"></div><div class="controller" id="next2"></div></div>
<div id="slider2">
<img src="../image1.png" alt="" width="265" height="116" class="logoclient2"/>
<img src="../image2.png"/>
</div>
</div>
</div>
I tried everything in positioning and display modes and even tried making them separate divs with different attributes....but can't make it work. I really need your help, I thank you all in advance.
*For Cycle I am using jquery

Solved,
changing css attribute to list-Item display solved the issue, it is the only display mode that worked, to solve the bullet problem just changed the font color to the actual background color to hide the bullet. Now both images stayed centered while shrinking page. The truth is that i don't know the reason of this, if somebody could explain it would be perfect!
ShaloM! and Happy Coding!

Related

How to display images in horizontal instead of vertical in virtualizedlist?

How to display images in horizontal instead of vertical in virtualizedlist? for performance issue I am using virtualizedlist instead of scrollview can anyone can help me how can I display the images in horizontally instead of vertically I tried doing horizontall={true} but then it just messing up with all other texts images and whole app UI how can I display that in horizontal?
I created a small sample of my code you can access from here https://codesandbox.io/s/hungry-shirley-t3ty45?file=/src/App.js
I dont realy know how your code works (couldn't find the css). But I have a posible solution, if you give the picture a class="picture" you can use the code undernead.
.picture {
writing-mode: vertical-lr;
}
<body>
<h1 class="picture">Picture here!</h1>
</body>

Swiper image slider - how to center images inside a slide?

I am developing an Ionic/Angular application and have to show an image slider. I did this with swiper ([https://swiperjs.com/get-started#install-from-npm]). Now my slides look like this (images have different widths and heights):
actual looking
My question is: Is there a way to center these images horizontally and vertically? This would be so much better looking!
Thank you in advance.
The idea of ​​swiperjs is to turn the entire div into a slider slider. You can do whatever layout you want inside that div. My advice is to design it separately, with some tool and then add it to the div with the swiper-slide class.

fullpage.js effect in a container div

From a quick search here and in Google I realised that it is not possible to put fullpage.js in a container, hence the name fullpage.js
Unfortunately I have to find a solution for my project. I want normal scroll on my entire website, but a specific div should have the fullpage.js "slideshow" effect, that when you scroll a bit, the whole section is moving to the other direction. I tried doing it myself with a lot of javascript calculations (scroll direction, binding and unbinding scroll events etc), but Its out of the scope of this project budget.
So my question is: is there a way to hack it around with fullpage.js or maybe with another plugin? I found scrollify, but it is basically the same.
Here is an HTML Code to show exactly what I mean
<body>
<h1>Some website</h1>
<h2>I want to scroll it normal</h2>
<div id="fullpage">
<!-- Only here should the slides scroll with the desired effect -->
<div class="section"></div>
<div class="section"></div>
<div class="section"></div>
</div>
</body>
Any kind of help would be appreciated. Here is a video showing exactly what am looking for.

center align image on homepage wordpress

I'm kind of a noob to website development so I'm not sure how to read the massive CSS file. Basically, I want my image slider on the homepage to be centered and not toward the left side of the page. I looked at some code by the inspect tool but I couldn't figure out where to make changes to make the body aligned center only for the homepage.
My website is www.indiacanada.net
Any help would be appreciated!
add class "col-md-offset-2" for the below DIV wich contains the slider.
<div class="col-md-8 la-content-inside col-md-offset-2">
And remove the below empty element.
<div class="col-md-4 left_sidebar"><aside id="la-right" role="complementary"></aside></div>

flipping a picture over into another image

im trying to make an image have a flipping animation when hovered over with the mouse.
kind of like a wheel of fortune card flips except its one image on one side and a different version of the image on the other side. any ideas how i do this ?
<img src="image1.jpg" onmouseover="this.src='image2'" onmouseout="this.src='image1'" />
i was looking it up online and i see how to make images rotate but not to flip over into another image. any ideas how to get me started would be greatly appreciated
I would recommend taking a look at this article.
Essentially, what you would want to do is have the two images as separate image objects
<img src="image1.jpg"/>
<img src="image2.jpg"/>
something to toggle in (in the article's case, an anchor)
<a href="index.html" onMouseOver="SwapOut()" onMouseOut="SwapBack()">
and finally something to store it (another image)
<img name="flippr" src="image1.jpg"></a>
I believe this resource outlines the effect you're trying to achieve. Pretty strong explaination. http://guilhemmarty.com/flippy/

Categories

Resources