# Default routing

To reduce development costs, the foundation pre-empts a number of common routing animation effects.

routeType Minimum base library version
wx://bottom-sheet 3.1.0
wx://upwards 3.1.0
wx://zoom 3.1.0
wx://cupertino-modal 3.1.0
wx://cupertino-modal-inside 3.1.0
wx://modal-navigation 3.1.0
wx://modal 3.1.0

# How to use it

Only when routing jumps, specify the correspondingrouteType.

Note: The above routing effect can be achieved by custom routing , you can refer to the sample code in the source file, custom effect.

wx.navigateTo({
  url: 'xxx',
  routeType: 'wx://modal'
})

# sample code

Preview the effect in the developer tool

# Effects demonstration