• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Replacement for Spry.Effect.DoGrow

New Here ,
Jan 19, 2018 Jan 19, 2018

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

Views

2.6K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jan 20, 2018 Jan 20, 2018

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">

Votes

Translate

Translate
LEGEND ,
Feb 05, 2018 Feb 05, 2018

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">

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 05, 2018 Feb 05, 2018

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 06, 2018 Feb 06, 2018

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 06, 2018 Feb 06, 2018

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> 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 06, 2018 Feb 06, 2018

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 06, 2018 Feb 06, 2018

Copy link to clipboard

Copied

LATEST

Personally l dont think either the image zooming or the columns readjusting their size add anything.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 06, 2018 Feb 06, 2018

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"

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines