Skip to content

Implement zoom in the Slider #5039

Closed
Closed

Description

@mhartington

From @kitkimwong on December 27, 2015 10:23

i am using the example in :
https://github.com/driftyco/ionic2/tree/master/ionic/components/slides/test/basic

And i want to pinch to zoom the image in the Slider so that i add the class ion-scroll-zoom in the slides. But it seems not work.

<ion-slides [options]="extraOptions" id="slider" style="background-color: black" class="ion-scroll-    zoom">
  <ion-slide *ngFor="#image of images">
    <img data-src="{{getImageUrl(image)}}" slide-lazy>
  </ion-slide>
</ion-slides>

Copied from original issue: driftyco/ionic2#816

Activity

  1. mhartington commented on Jan 18, 2016

    @mhartington
    ContributorAuthor

    From @brandyscarney on December 28, 2015 15:42

    This is not added yet, but the way to do it would be to add the zoom property to the ion-slides:

    <ion-slides [options]="extraOptions" id="slider" zoom>
    
  2. mhartington commented on Jan 18, 2016

    @mhartington
    ContributorAuthor

    From @kitkimwong on December 28, 2015 16:0

    @brandyscarney I tested "zoom" with the example:
    https://github.com/driftyco/ionic2/tree/master/ionic/components/slides/test/basic

    But it is not work, tested in android 4.4.4 and 5

  3. mhartington commented on Jan 18, 2016

    @mhartington
    ContributorAuthor

    From @kitkimwong on December 28, 2015 16:11

    Ok, thank you for your reply. Wait your team's good news.

  4. mhartington commented on Jan 18, 2016

    @mhartington
    ContributorAuthor

    From @brandyscarney on December 28, 2015 16:13

    👍 I'm going to reopen this issue to get it added.

  5. added this to the 2.0.0-beta.1 milestone on Feb 12, 2016
  6. changed the title [-]How to pinch to zoom image in the Slider?[/-] [+]Implement zoom in the Slider[/+] on Feb 16, 2016
  7. 49 remaining items

  8. shahidmughal commented on Dec 9, 2016

    @shahidmughal

    @GavinHellyer Thanks for your solution. Hope Ionic team fixes this issue as it has been lingering for quite sometime.

  9. kitkimwong commented on Dec 10, 2016

    @kitkimwong

    Ha, I am the one who open this issue from December 27, 2015.
    Now It is 2016 December and I return back to look whether this issue is solved although I had given up to use ionic2 .
    It is sad that if there is no official solution about this problem because this is the basic component for any app.

    But anyways, thanks a lot for the hard work of all the Ionic team, and glad to see this great framework look so awesome. :)

    Cheers!

  10. fer-ri commented on Dec 10, 2016

    @fer-ri

    @kitkimwong do you have any recommendation other than ionic?

  11. shahidmughal commented on Dec 10, 2016

    @shahidmughal
  12. applecat commented on Dec 11, 2016

    @applecat

    @ghprod I can recommend to use Framework7 instead of Ionic. Ionic/Ionic2 is great, but F7 have a lot of ready to use components, it really fast, easy to use (no need to learn Angular/Angular2 for example), and have many other features.

    In Framework7 you can use Swiper Slider and Photo Browser for slider with zoom feature.

    I have successful experience with F7. We have created two apps in a few month. For comparison, we have invested one year in Ionic1 app development, and our app was almost ready, but it had some serious performance issues on old mobile devices. We decided migrate app to Ionic2, invest many time to learn all this new Angular2 conceptions, but migration was a very time-consuming. And Ionic2 does'n have components we need -- Zoom in Slider and Messages component. And with F7 we can create our apps in short time period. Hope this helps somebody.

  13. pausalvi commented on Dec 27, 2016

    @pausalvi

    @GavinHellyer @shahidmughal
    Where should [zoom-pan] be attached? ion-contect? ion-slides? ion-slide?
    Thanks in advance.

  14. GavinHellyer commented on Dec 27, 2016

    @GavinHellyer

    Slider:
    <ion-slide *ngFor="let image of images"> <img [src]="image.url" zoom-pan /> </ion-slide>

    CSS:
    .slide-zoom { display: block; position: relative; overflow: hidden; width: 100%; height: 100%; }
    .slide-zoom img { display: block; position: absolute; top: -50%; bottom: -50%; left: 0; right: 0; margin: auto; max-width: 100%; max-height: 100%; width: auto; height: auto; }

    I hope that helps

  15. danielehrhardt commented on Jan 4, 2017

    @danielehrhardt
    Contributor

    Anything new?

  16. vassallocarlo commented on Jan 6, 2017

    @vassallocarlo

    +1

  17. mhartington commented on Jan 6, 2017

    @mhartington
    ContributorAuthor

    We are working on adding this feature. For now, I am locking this issue.

  18. locked and limited conversation to collaborators on Jan 6, 2017
  19. jgw96 commented on Feb 8, 2017

    @jgw96
    Contributor

    This issue was moved to driftyco/ionic-feature-requests#114

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions