Copy link to clipboard
Copied
I am updating our website dominiquebello.com to make it responsive, using bootstrap
The original uses Spry.Effect.DoGrow on a couple of the pages. What can I use to get the same effect in a bootstrap context, since Spry is no longer in use?
Thanks
Jerry
For some browsers, the link to the image must be within the same domain as the main document. The best way is to have the image located in the local images folder and to rename the link to <img src="images/IndexImage/1.jpg" alt="" class="zoom">
Copy link to clipboard
Copied
DBSilk wrote
And in the bootstrap framework, I would have thought that the text and image would stack on small screens, rather than remaining side-by-side, albeit with the text narrower than on big screens
Change your Bootstrap classes to col-md-3 and col-md-9 repectively::
<article class="col-md-3">
<figure class="col-md-9">
Copy link to clipboard
Copied
DBSilk wrote
Does the bootstrap framework preclude the full spry effect I had in the original (see the contact page for reference? In that case, the zoom starts with the text taking up half the width of the page, then narrowing at the same time as the image enlarges.
You can set the the width that the 2 columns will end up at in the @keyframes animation
Copy link to clipboard
Copied
Thanks, Osgood.
Ben Pleysier was kind enough to send me the code needed for the image zoom. (See #1 above). With a little tweaking by him that worked. But I don't understand the animation well enough to extend it to the column widths-- I would need someone's help.
Copy link to clipboard
Copied
DBSilk wrote
Thanks, Osgood.
But I don't understand the animation well enough to extend it to the column widths-- I would need someone's help.
Below is a quick demo which animates the left and right columns:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Animate</title>
<style>
body {
font-family: helvetica, verdana sans-serif;
}
*{
box-sizing: border-box;
}
img {
max-width: 100%;
}
.wrapper {
display: flex;
flex-wrap: wrap;
width: 57%;
margin: 0 auto;
background-color: #000;
padding: 60px 0 0 0;
}
@media screen and (max-width: 768px) {
.wrapper {
width: 100%;
background-color: red;
}
}
.left {
text-align: center;
color: #fff;
padding: 0 0 0 50px;
width: 50%;
}
@media screen and (max-width: 768px) {
.left {
width: 100%;
}
}
.left p {
margin: 0;
padding: 0;
font-size: 16px;
line-height: 26px
}
.right {
text-align: center;
color: #fff;
width: 50%;
}
@media screen and (max-width: 768px) {
.right {
width: 100%;
padding: 30px 0;
}
}
</style>
<style>
.zoom {
-webkit-animation: zoomer 2s;
animation: zoomer 2s;
-webkit-transform: scale(0);
transform: scale(0);
-webkit-animation-fill-mode: forwards;
animation-fill-mode: forwards;
transform-origin: top right;
}
.right {
animation: right_col 3s;
-webkit-animation-fill-mode: forwards;
animation-fill-mode: forwards;
}
.left {
animation: left_col 3s;
transform-origin: top left;
-webkit-animation-fill-mode: forwards;
animation-fill-mode: forwards;
}
@keyframes zoomer {
100% {
transform: scale(1);
}
}
@-webkit-keyframes right_col {
0% {
width: 50%;
}
50% {
width: 50%;
}
100% {
width: 70%;
}
}
@media screen and (max-width: 768px) {
@-webkit-keyframes right_col {
0% {
width: 100%;
}
100% {
width: 100%;
}
}
}
@-webkit-keyframes left_col {
0% {
width: 50%;
}
50% {
width: 50%;
}
100% {
width: 30%;
}
}
@media screen and (max-width: 768px) {
@-webkit-keyframes left_col {
0% {
width: 100%;
}
100% {
width: 100%;
}
}
}
</style>
</head>
<body>
<div class="wrapper">
<div class="left">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div>
<!-- end left -->
<div class="right" >
<img src="http://dominiquebello.com/images/ContactImage/1.jpg" alt="" class="zoom">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit</p>
</div>
<!-- end right -->
</div>
<!-- end wrapper -->
</body>
</html>
Copy link to clipboard
Copied
Thanks for the very prompt response, Osgood. Unfortunately, when I consulted the artist, she prefers that only the image zoom. I disagree--but it is her website. So we will leave it as is. I will start a new thread to solve one remaining problem
Thanks again
Jerry
Copy link to clipboard
Copied
Personally l dont think either the image zooming or the columns readjusting their size add anything.
Copy link to clipboard
Copied
I should have said that the current version ("index") appears in dominiquebello.com​. The way the page used to work can be seen in "contact"