I have a need for my image to be 100% width of the screen, and the height auto adjust based on the width.
I've got it working as desired using the below, the image height adjust with the width for different window sizes.
But, the animations don't work, the image simply disappears. If I don't have the .rigItemBox class as shown below, the animations do work, but the image doesn't resize as desired.
Any Suggestions?
<form id="form1" runat="server">
<style type="text/css">
html, body, form {
margin: 0px !important;
}
/*Resize of the Image works as desired when the browser window is resized, but it breaks Animations, the image disappears*/
.rigItemBox {
height: 100% !important;
width: 100% !important;
}
.RadImageGallery {
background-color: transparent !important;
}
.rigToolbar {
display: none;
}
.rigActiveImage img {
padding: 0px !important;
width: 100% !important;
}
</style>
<script type="text/javascript"> // Auto start the main carousel/slideshow
function pageLoad() {
$find('<%=RadImageGallery1.ClientID%>').playSlideshow();
}
</script>
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
</telerik:RadScriptManager>
<div>A div with some text above our Image Gallery</div>
<telerik:RadImageGallery ID="RadImageGallery1" runat="server" LoopItems="True" Width="100%"
ToolTip="Click to View All Featured Products/Projects" AppendDataBoundItems="True" ImagesFolderPath="~/Images/Projects/">
<ThumbnailsAreaSettings Mode="ImageSlider" />
<ImageAreaSettings Width="100%" ResizeMode="Fit" ShowDescriptionBox="false" />
<ToolbarSettings Position="None" />
<ClientSettings>
<AnimationSettings SlideshowSlideDuration="3000">
<NextImagesAnimation Speed="1500" Type="Fade" />
<PrevImagesAnimation Speed="1500" Type="Fade" />
</AnimationSettings>
</ClientSettings>
</telerik:RadImageGallery>
<div>A div with some text below our Image Gallery</div>
</form>